• Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError when JDK is used.  RSS feed

 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,

I am receiving OutOfMemoryError when I start managed server in weblogic9.2. Weblogic9.2 provides two java implementation. Jdk1.5 and JRocket. When "Java_Vendor" property is set to Sun, it uses jdk1.5, else by default it picksup JRocket. When I use JRocket then there is no OutOfMemoryError. When using JDK I had set memory arguments as follows
-Xms768m -Xmx1024m
Still cannot get rid of the problem. While using JRocket I dont need to set any VM arguments and it works !!

Can anyone suggest me how can I get rid of this problem? I want to use jdk and not JRocket.

Waiting for your reply.

Thanks
Rohit.
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gsThere is nothing in JDK 1.5 which causes it to consume memory like that.
I suggest you try.
- the latest JDK 1.5 which is 1.5.0_17
http://java.sun.com/javase/downloads/index_jdk5.jsp
- try using a memory profiler to see where the memory is being consumed.
 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. The issue got resolved when I set the following parameter in VM arguments
-XXMaxPermSpace=256m

Thanks
Rohit.
 
Rajah Nagur
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Permanent space issue can be easily identified by the exception stack trace.

Did you see something like this in the stack trace?

If yes, then your fix is good..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!