cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Java.lang.outofmemoryerror

Former Member
0 Kudos

hai,

I developed a Webdynpro application whch is using webservices as the models,

If the 4 or 5 users simultaneously using that application the server has been throwing this error

java.lang.OutOfMemoryError.

How can i solve this?

The Server System having the RAM 2GB

Intel 3.2 mhz processor.

if there is any changes in administration can solve my problem.

how much of ram is better for WAs

regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do check the log file on the server callSdmViaSapinst.log

If it reads as

Caught exception during application deployment from SAP J2EE Engine's

deploy service:

java.rmi.RemoteException: ERROR : ; nested exception is:

java.lang.OutOfMemoryError

Then configure your heap size using sap notes according to your platform

Regards,

Vijith

Former Member
0 Kudos

hai,

I opened the visual administrator , but i cant find where to change the heap size.

please give me the path in visual administrator.

regards,

Former Member
0 Kudos

Naga,

What you need is not Visual Administrator, but Config Tool. Look up for folder "configtool"

VS

Former Member
0 Kudos

hai valery,

But in the offline config tool , i found the term maxHeapSize in four times. whch one i change, Please help me.

regards,

Former Member
0 Kudos

hia, i just opened the offline config tool, under the tab cluster_data i ofund the node propertysheet instance.properties_ID.XXXX

Iopend this using edit mode , i found morethan three times maxHepSize node, one is having the dfault value 170, another is 512, and another is 170.

what can i do?

regards,

Former Member
0 Kudos

Naga,

You have to tweak setting for instance.properties_ID.XXXX.

However, if you have problems with 512M then problem probably in somewhat different.

Check settings like -XX:MaxPermSize=128m. If there are no such setting (default is 64m), then add it and try values 128m and 196m.

VS

Former Member
0 Kudos

hai valery,

I am not getting maxpermsize, Please give me the path.

regards,

Former Member
0 Kudos

Naga,

You can see settings for JVM?

Some text editor with lines starting like -D or -X?

Just add line -XX:MaxPermSize=128m here.

VS

Former Member
0 Kudos

Valery,

I tried to see settings for jvm in offlineconfigeditor, But i didnt find any thing.

regards,

Former Member
0 Kudos

Hi,

I would recommend you to use the config tool (configtool.bat/configtool.sh) rather than offline configtool (offlinecfgeditor.bat/offlinecfgeditor.sh). The config tool has better user interface. Then refer to note 710146.

Best Regards

Vyara

Former Member
0 Kudos

hai,

I opened the offlineconfig tool, But i didnt get the exact path where can i increase the heap memory.

regards,

Former Member
0 Kudos

Hi,

Once again do not use the offlineconfigtool but the config tool and follow the note that I gave you - 710146. It describes where you need to change the JVM settings.

You may need to have a look at this documentation as well:

http://help.sap.com/saphelp_nw04/helpdata/en/4e/d1cf8d09a94ae79319893c2537d3a0/frameset.htm

Best Regards

Vyara

Former Member
0 Kudos

Hi raju

look at sap note 759669

I. If you are running SP9 or higher of the J2EE Engine 6.40

proceed as follows:

1. Start the configtool in <J2EE_HOME>/configtool directory

2. Browse the tree in the left pane

cluster-data -> Global server configuration -> services -> classpath_resolver

3. In the right pane click on the key javac.Xmx

4. In the Value edit field on the bottom insert 256

5. press the Set button in the upper right corner

6. choose from the Menu File->Apply and confirm all windows popping up

7. restart the J2EE instance

8. restart the deployment process

regards,

kaushal

Former Member
0 Kudos

Hai kaushal,

I did whatever you explained above and restarted the server, but the problem is reexist,Is increasing the heap memory will solve my problem then please give me the steps to increase the heap memory.

please help me.

regards,

Former Member
0 Kudos

Hi Raju

yes increase the heap memory.

llok at note 710146 which is provide by VYARA and alos llok at following link to change the heap size whic is also provide by VYARA

http://help.sap.com/saphelp_nw04/helpdata/en/00/3ca3e81b5a4c749b860ab1ed1fb206/content.htm

regards,

kaushal

Answers (3)

Answers (3)

Former Member
0 Kudos

I am having a similar situation where the Instance is restarting its self periodically daily, and "<b>FATAL: Caught OutOfMemoryError! Node will exit with exit code 666</b>" is being reported from the instance work directory.

We have adjusted the JVM parameters several time as this server has plenty of RAM, is there anything else that could contribute to this?

-Thanks

Former Member
0 Kudos

I am getting the same error, with the exit code of 666. Have you gotten anywhere on this?

Former Member
0 Kudos

hi

Login in to the offline config tool(c:\usr\sap\J2E\JC00\j2ee\configtool\configtool.bat )

go to cluster-data>Instance_idXXXX node .

Change the Bootstrap Java Settings > MAX heap size (in MB)- to 2 or 3 times of current heap size

Also if needed change the MAX heap size for the other tabs also

Restart the server with these changes

hope this helps , please mark points for helpful answers

regards

rajesh kr

Former Member
0 Kudos

Hi

It seems that your java heap size is less . you can increase the heap size using offline config tool. please

have a llok at this forum thread

Hope this helps , please mark points for helpful answers

regards

rajeshkr

Message was edited by: Rajesh K. R.