cancel
Showing results for 
Search instead for 
Did you mean: 

jcontrol.exe stopped - java.lang.outofmemoryerror

Former Member
0 Kudos

Hi all,

I'm unable to start by WAS(Java)04. The jcontrol.exe node in SAPMMC is displayed as stopped.

I could see the following error while checking the logs:

java.lang.OutOfMemoryError: unable to create new native thread#

Has anyone faced this before?Could you please help me resolve this?

I tried to increase the Heap Size in configtool but i couldn't launch it as well.

Regards

Swarna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

On what i have seen in the past, the problem with the OutOfMemmoryError seems to be with the -XX:MaxPermSize Java parameter of the server which is set to a value say '128'. What is the value in your system?For ex -XX:MaxPermSize=128 is interpreted by the JVM as 128 bytes. So, please set it to 128M or <the value in your system>M(Just add an extra M to the avlue, thats it) accordingly using Config Tool.Restart and check.

Former Member
0 Kudos

Also what is the heap size you have allocated?

Former Member
0 Kudos

Hi Bidwan,

thanks for the quick response!

Can you tell me where i can check the -XX:MaxPermSize and heap size? By the way, I'm not able to launch configtool also.

Regards

Swarna

Former Member
0 Kudos

In Config Tool -> Cluster Data -> Instance -> Servers General.

What is the error are you getting?

Former Member
0 Kudos

What does dev_jcontrol say?

Former Member
0 Kudos

When i double click on configtool.bat the console opens with the message

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81

)

Caused by: java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start(Native Method)

at javax.swing.JEditorPane.setPage(JEditorPane.java:429)

at javax.swing.JEditorPane.<init>(JEditorPane.java:236)

at com.sap.engine.services.log_configurator.admin.gui.LogControllerPanel

.initPanel(LogControllerPanel.java:141)

at com.sap.engine.services.log_configurator.admin.gui.LogControllerPanel

.<init>(LogControllerPanel.java:92)

at com.sap.engine.services.log_configurator.admin.gui.LogControllerPanel

Logical.<init>(LogControllerPanelLogical.java:81)

at com.sap.engine.services.log_configurator.admin.gui.CategoriesPanel.<i

nit>(CategoriesPanel.java:26)

at com.sap.engine.services.log_configurator.admin.gui.GeneralLogControll

erPanel.<init>(GeneralLogControllerPanel.java:52)

at com.sap.engine.configtool.visual.ElementLogConfigurationPanel.initGui

(ElementLogConfigurationPanel.java:39)

at com.sap.engine.configtool.visual.ElementTabPanel.<init>(ElementTabPan

el.java:22)

at com.sap.engine.configtool.visual.ElementLogConfigurationPanel.<init>(

ElementLogConfigurationPanel.java:33)

at com.sap.engine.configtool.visual.ElementPanel.initTabsPane(ElementPan

el.java:38)

at com.sap.engine.configtool.visual.ElementPanel.initGui(ElementPanel.ja

va:24)

at com.sap.engine.configtool.visual.ElementPanel.<init>(ElementPanel.jav

a:18)

at com.sap.engine.configtool.visual.ConfigToolView.initGuiCfgTool(Config

ToolView.java:114)

at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView

.java:79)

at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:69

)

at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:960)

... 5 more

Exception in thread "main" java.lang.OutOfMemoryError: unable to create new nati

ve thread

at java.lang.Thread.start(Native Method)

at java.lang.Shutdown.runHooks(Shutdown.java:126)

at java.lang.Shutdown.sequence(Shutdown.java:165)

at java.lang.Shutdown.exit(Shutdown.java:210)

at java.lang.Runtime.exit(Runtime.java:90)

at java.lang.System.exit(System.java:715)

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:11

1)

Program terminated abnormally

Press any key to continue . . .

Former Member
0 Kudos

Can you please try killing all the java processes in the Task Manager OR reboot the server and then try to start config tool?

Former Member
0 Kudos

Hi Bidwan,

Sorry for the delayed reply! i'm now able to open config tool after restart.

i could see the following parameter in it.

-XX:MaxPermSize=192m

Should i increase this?

Thanks a lot!

Swarna

Edited by: SwarnaDeepika on Dec 21, 2007 9:38 AM

Former Member
0 Kudos

Hi,

SAP has recommended JVM settings for standard SAP java applications running on SAP J2EE Engine 6.40/7.0.

Refer to SAP Note 723909 - Java VM settings for J2EE 6.40/7.0 for the guidelines.

Hope this helps.

Regards

Srinivasan T

Answers (0)