2022 Developer Survey is open! Take survey.

Questions tagged [heapspace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

How to increase the Java Memory in Windows Server 2016 R2?

I am trying to follow This Link to increase the memory that is available to the Java Runtime Environment, becase I encountered the "insurfficient memory for the Java Runtime Environment to continue" ...
user avatar
0 votes
1 answer
286 views

Monitor Java Heap on a Centos Server via Telegraf/Grafana

How to Monitor Java Heap usage on centos server using Telegraf and Grafana? This monitoring is particularly for Logstash process running on the server. I tried to use JSTAT to get data, but it has ...
user avatar
  • 827
1 vote
2 answers
34k views

Native memory allocation (mmap) failed to map bytes for committing reserved memory

I am running a download server in AWS t2.micro instance & I have configured max heap of 512 MB & min heap of 256 MB for my java process. I am performing a migration kind of process in a single ...
user avatar
1 vote
2 answers
285 views

Too many major garbage collections: Add heap space or add another VM?

We are not yet experiencing any application errors but our monitoring tools are indicating that our application is running at the limits of it's resources. Should we first add more heap or add an ...
user avatar
3 votes
1 answer
3k views

How much memory must be left to the OS with a java server application? [closed]

Suppose I am running tomcat with -Xms256m -Xmx1024m, but would like to increase my heap usage. What is the largest safe heap size I can allocate? For the purpose of this question, please assume, ...
user avatar
  • 211
3 votes
3 answers
6k views

How can I verify the heap size startup arguments for an active JVM that's running as a Windows service and loading JVM params from registry?

I've got a Windows server with a third-party application on it that runs as a Windows service. The service/application is actually a java virtual machine however it displays in task manager as an exe ...
user avatar
  • 11.4k
2 votes
1 answer
1k views

ES fills up heap slowly over time and hangs at 14GB, while biggest index is 164MB?

I have an issue with Elasticsearch, at some times, it tries to run GC continously since this one is unable to free because heap size set to 14GB (min and max) is said to be completely allocated: (...)...
user avatar
  • 799
1 vote
1 answer
347 views

WebSphere - Jython command to view an Application's memory usage

Using IBM WebSphere Application Server version 8.0.0.1, is there a way to view the memory usage of a running application on the server? Something with Jython or Jacl? I can view the memory usage of a ...
user avatar
  • 234
0 votes
1 answer
1k views

java 7: should users be aware of changes in heap memory handling?

After installing the latest Java 7 Development Kit (Java SE 7u11) on my Windows 7 Professional 32bit PC with 4Gb RAM, I noticed I can't allocate much memory for Tomcat. Whereas these memory settings ...
user avatar
  • 299
0 votes
2 answers
3k views

"Error occurred during initialization of VM" in linux server

I am trying to run java command in linux server it was running well but today when I tried to run java I got some error- Error occurred during initialization of VM Could not reserve enough space for ...
user avatar
1 vote
2 answers
2k views

JVM memory initializazion error after windows update

We have three Windows Server 2003 with 2 GB RAM. Server1 tomcat 5.5.25 jvm version SUN 1.6.0_11-b03 Server2 tomcat 5.5.25 jvm version SUN 1.6.0_14-b08 ...
user avatar
0 votes
2 answers
4k views

Increasing Java's heapspace in Tomcat startup script

I want to increase my heap size when using Tomcat. I was told to add this line export CATALINA_OPTS=-Xms16m -Xmx256m; In to the startup.sh script - I did so (at the beginning) but got the error ...
user avatar
  • 2,369
5 votes
1 answer
8k views

Alternatives for heapdumps creation with higher performance than jmap?

I have to create heapdumps, which works nice with jmap. My problem is, that jmap takes very long to create the heapdump file. Especially when the heap is getting bigger (> 1GB) it is taking too long. ...
user avatar
  • 4,595