Questions tagged [heapspace]

13 questions
5
votes
1 answer

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. One situation as example: When the server gets…
Christian
  • 4,645
  • 2
  • 23
  • 27
3
votes
1 answer

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

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, the system has 5GB RAM and is a z/Linux system. …
GC_
  • 211
  • 2
  • 6
3
votes
3 answers

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 (let's call it foo.exe). I know that the…
Mike B
  • 11,570
  • 42
  • 106
  • 165
2
votes
1 answer

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: (...) [2014-09-18 13:43:45,984][INFO ][monitor.jvm …
Alex F
  • 819
  • 1
  • 10
  • 17
1
vote
2 answers

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 thread which downloads files (Sizes < 50MB)from google…
Aarish Ramesh
  • 111
  • 1
  • 1
  • 4
1
vote
2 answers

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 additional VM? We have an application running on…
user3067860
  • 111
  • 4
1
vote
1 answer

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 Application Server, but not the individual…
FilBot3
  • 234
  • 4
  • 18
1
vote
2 answers

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 Server3 tomcat 6.0.18 jvm…
gianni
0
votes
1 answer

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" when running Tableau Server. But my question is: I…
0
votes
1 answer

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 lot of numbers which needs manipulation to obtain…
Darktux
  • 827
  • 5
  • 20
  • 36
0
votes
1 answer

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 worked for Java Development Kit 6u38: set…
rvdb
  • 319
  • 1
  • 5
  • 14
0
votes
2 answers

"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 object heap Could not create the Java virtual…
Khoyendra Pande
  • 170
  • 2
  • 11
0
votes
2 answers

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 export: 24: -Xmx256m: bad variable name Where am I…
Ankur
  • 2,369
  • 7
  • 22
  • 24