-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to solve java heap space?
PostPosted: Fri Nov 07, 2008 1:45 am 
Newbie

Joined: Sat Oct 11, 2008 3:31 am
Posts: 11
Hi guys im getting java heap spce error. I Know why it arises.

This can have two reasons:

* Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks.
* Your Java application really needs a lot of memory (more than 128 MB by default!). In this case the Java heap size can be increased using the following runtime parameters:

java -Xms<initial heap size> -Xmx<maximum heap size>

Defaults are:

java -Xms32m -Xmx128m

You can set this either in the Java Control Panel or on the command line, depending on the environment you run your application.

But can anyone tell me where to make changes to increased size of heap space?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2008 2:58 am 
Newbie

Joined: Thu Jul 17, 2008 2:00 am
Posts: 4
Location: INDIA
The location of the argument that sets the memory arguments depends upon the application server and the OS that you are using. E.g. In weblogic, the memory arguments may be set as:-

set MEM_ARGS=-Xms512m -Xmx1024m

This can be done in the setDomainEnv.cmd file in the domains folder.

In the JBoss, the same may be done in the run.bat file in the bin folder.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.