Getting Out Of Memory: Java heap space, but while viewing heap space it max uses 50 MB

I'm using ASANT to run a xml file which points to a NARS.jar file. (i do not have the project file of the NARS.jar) I'm getting "java.lang.OutOfMemoryError: Java heap space. I used VisualVM to...

Interpreting the results of a VisualVM profiling session

I have an application that writes some data (about 15mb in 80k tuples) into an SQLite database using this jdbc-driver on Mac OS X. This is done using transactions, the largest of which contains...

OutOfMemory Exception - how does VisualVM help locate the memory leak with heapdump file?

I've been testing my webapp locally on my pc and monitoring it with VisualVM. I recently also started using JMeter, as it was suggested that I should do some load testing since I suspected that I...

Eclipse Memory Analyzer - Leak Suspects Report doesn't point to MY classes - why?

I'm trying to determine whether or not I have a memory leak in my webapp. I'm using VisualVM and JMeter to load test and watch the heap. I saved a heap dump to file and downloaded Eclipse Memory...

Java heap size usage

I've written a simple application that works with database. My program have a table to show data from database. When I try to expand frame the program fails with OutOfMemory error, but if i don't...

How to do load testing using jmeter and visualVM?

I want to do load testing for 10 million users for my site. The site is a Java based web-app. My approach is to create a Jmeter test plan for all the links and then take a report for the 10...

jmap/jhat vs jVisualVM

I understand that jmap is used to create heap dumps and the same can be analysed by Jhat. jVisualVM also can be used to analyze the heap dumps (and can do much more tasks such as profiling...

java.lang.OutOfMemoryError: Java heap space ("-Xmx1280M")

java.lang.OutOfMemoryError: Java heap space Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space I am getting this error my system RAM is 3GB and I have...

JVM memory usage out of control

I have a Tomcat webapp which does some pretty memory and CPU-intensive tasks on the behalf of clients. This is normal and is the desired functionality. However, when I run Tomcat, memory usage...

Difference between sampling and profiling in jVisualVM

VisualVM has two separate tabs for sampling and profiling. What is the difference between sampling and profiling in VisualVM?

Dump Java heap shortly before OutOfMemoryException?

Possible Duplicate: Java VisualVM Enable Heap Dump on OOME I've got an App that crashes because of an OOME. I would like to create a dump file of the heap shortly before the App crashes. I used...

Could someone please tell me how to measure the time taken for heap dumps using either JConsole or VisualVM?

I am trying to analyze the performance impact of trying to take a heap dump for my application that uses close to 3 GB of heap memory. This is to decide and understand if I should enable the...

Tomcat 7 - has my heap dump leaks?

We have Tomcat 7(0.0.47) in test environment and I decided to take heap dump from it to see if everything is OK with our memory. It contains three apps - one is jersey+spring rest web app, another...

VisualVM running JRE

I can't get VisualVM working with eclipse, i was following these instructions http://visualvm.java.net/download.html and also these http://visualvm.java.net/gettingstarted.html The problem is that...

Why is tomcat using more and more heap space during idling?

I start tomcat using startup.bat and do nothing more with it. It is a plain vanilla installation (Version 7.0.47), as far as I know. When connecting with a JMX tool, like VisualVM I see the usage...

Java Memory usage continuously growing till OutOfMemory Exception

I have a program which parses files and stores the data in a mysql-Database. My Problem is that the Heap space(I use VisualVM to follow them) is growing. And the Memory usage(ps aux --sort -rss)...

How to get the thread/class name that caused memory leak?

I have heap dump from production server which was facing OutOfMemory exception. I have core dumps of multiple threads. I can load heap dump to IBM HeapAnalyzer, I see that there is 2.5GB of...

see contents of StringBuffer or char[] from a Java heap dump

I have a Java heap dump that I'm analyzing, looking for high consumers of memory. More than 50% of the memory in the dump is in use by two StringBuffers, each of which holds a char[] which...

Error : java.lang.OutOfMemoryError: Java heap space

I had this "java.lang.OutOfMemoryError: Java heap space " and I read and understand that I can increase my memory using -Xmx1024m. But I think in my code I can change something to this error does...

get heap dump from command line using jmx

Is it possible to get a server heap dump on a running process on linux (CentOS) using JMX from command line ? can't open VisualVM, can't install jmap

Unable to Connect to a Remote JVM using JStat

From the Jstat Documentation , jstat can be connected to a local as well as remote JVM. The URI can be formed as [protocol:][//]lvmid[@hostname[:port]/servername] I have a JVM running on one of...

Spring Boot App memory consumption

Ours is a Spring Boot/Java 8 application that we run using xms = 256 MB, xmx = 2 GB Our release engineers are running TOP command on the unix server where the application is running and are...

Cannot access the value of a StringBuilder in a heap dump in VisualVM

I am willing to write the value of a large StringBuilder with index 827 to disk. I am trying to do that using the following OQL: map(heap.objects('java.lang.StringBuilder'), function(it, index)...

OutOfMemoryError heap dump

I have a java.lang.OutOfMemoryError:GC Overhead limit exceeded. There is no HeapDumpOnOutOfMemoryError command line option for my application. I need a heap dump but when I try to capture the dump...

How to see all string objects in visualvm?

I try to learn how to use java profilers and i choose VisualVM for it. At this moment i dont understand, how it works for see an objects in a heap. For example i declare three objects public...

ERROR: attach: task_for_pid(23990) failed: '(os/kern) failure'

I start jstatd in server: /opt/dabai/tools/jdk1.8.0_211/bin/jstatd -J-Djava.rmi.server.hostname=172.19.150.82 \ -J-Djava.security.policy=/opt/dabai/tools/jdk1.8.0_211/bin/jstatd.all.policy...

CPU usage going 100% on making any transaction

Recently I came up across strange scenario where I could see the application slows down after some point of time due to which I am unable to load application. So I started monitoring the server...

Linux top command reporting high CPU usage for Java ThreadPoolExecutor thread in Waiting state (after updating Jetty server from 9.0.6 to 9.4.22)

I have a web service which receives requests and after performing certain validations dumps data to a Message Queue. This service creates a ThreadPoolExecutor internally. I use Prometheus and...

visualvm profiles jvm heap found int array takes huge memory

I have a Spring boot program using OpenJdk (jdk1.8) running at server, consuming about 200 or 300 million data from kafka and write to csv files each day. Less than 2 hours after starts up, it...

Spring RabbitMq Listener Configuration

We are using RabbitMq with default spring boot configurations. We have a use case in which we want no parallelism for one of the listeners. That is, we want only one thread of the consumer to be...