开发者

How come netbeans java profiler crashes with a heap overflow error at ~64mb?

I am trying to profile the memory usage of a program, but I keep getting a stack overflow error.

The netbeans memory settings I am using are as follows:

-J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m 

The project memory settings I am using are as follows:

-Xms256m -Xmx512m 

Here is screen shot.

I am not sure where 65 mb is coming from. Can someone please help me?

开发者_开发知识库Thank you, Grae

PS: netbeans 6.5


You didn't put -Xmx (max. heap size) for Netbeans itself, and the default is 64mb.


This 65M cap is coming from your application. It has nothing to do with NetBeans. You need to increase the max heap for your application in order to get rid of this OOME.

Also, the number of surviving generations is continually growing, indicating a very probable memory leak.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜