HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space (238 Views)
Reply
Regular Visitor
mohamedshahat
Posts: 4
Registered: ‎11-29-2013
Message 1 of 10 (238 Views)

HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

We have HP BSM 9.20, when trying to upload a new script (Ajax True Client) recorded by VUGen 11.51 to script repository it takes some long time then gives an error :

 

Failed to upload the following script:

ADITRUE: Failed to create script. System error occurred: Java heap space

 

Your help is much appreciated and needed seriously

 

 

Please use plain text.
HP Expert
PatWest
Posts: 694
Registered: ‎03-06-2008
Message 2 of 10 (211 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

What is the size of the script? its size may be the reason of the heap space error.
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
pafreire
Posts: 140
Registered: ‎01-10-2011
Message 3 of 10 (206 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

Hello Mohamed,

 

It seems that you have a issue related to java memory configuration.

 

Please check the logs for messages related with memory starvation.

 

It is possible to change the java memory configuration to use more memory, but you need to have physical memory available enough to do it.

 

Let we know the outcomes.

 

 

HTH,

 

Paulo

 

 

“The greatest challenge to any thinker is stating the problem in a way that will allow a solution.”
Bertrand Russell
Please use plain text.
Valued Contributor
noamhasin
Posts: 61
Registered: ‎11-20-2011
Message 4 of 10 (196 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

Check this post, how to reduce TruClient script size:

 

http://lnkd.in/dCp4mbr

 

BTW in BSM9.23 we added to fix to this problem

Functional Architect
Please use plain text.
Regular Visitor
mohamedshahat
Posts: 4
Registered: ‎11-29-2013
Message 5 of 10 (186 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

Script size = 1.14 MB 

 

 

Please use plain text.
Regular Visitor
mohamedshahat
Posts: 4
Registered: ‎11-29-2013
Message 6 of 10 (185 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

Total Physical memory = 10 GB
Used = 7GB

Is there a certain log file u know, to look into it?
Please use plain text.
HP Expert
Siggi Gladitsch
Posts: 294
Registered: ‎03-11-2010
Message 7 of 10 (179 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

from KM doc KM888292, this is from BAC 8.04, but it still applies to BSM.

 

At the time BAC tries to upload the file, <BSM>\log\jboss_server.log shows

 

2010-04-14 08:03:33,781 [TP-0 <device_controller>] (LogInterceptor.java:426) ERROR - Unexpected Error in method: public abstract com.mercury.topaz.tmc.response.TMCResponse com.mercury.topaz.tmc.bizprocess.profile.ProfileTBP.uploadScript(java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean) throws java.rmi.RemoteException
java.lang.OutOfMemoryError: Java heap space
 at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
 at java.lang.StringBuffer.<init>(StringBuffer.java:104)
 at com.mercury.topaz.tmc.bizprocess.profile.ScriptHelper.addScript(ScriptHelper.java:125)
 at com.mercury.topaz.tmc.bizprocess.profile.ProfileImpl.uploadScript(ProfileImpl.java:1100)
..

 

<BSM>\log\topaz_all.ejb.log:

 

2010-04-15 10:15:35,015 [TP-0 <device_controller>] (DeviceControllerStage.java:277) ERROR - Failed processing request operation=ADD_OP context=class com.freshwater.stage.RouteConfig in device controller stage
java.lang.OutOfMemoryError: Java heap space
2010-04-15 10:15:35,062 [TP-4 <enterprise_services>] (EnterpriseApiExceptionUtils.java:35) ERROR - Error:
com.freshwater.subsystems.common.EnterpriseObjectException: Failed processing request operation=ADD_OP context=class com.freshwater.stage.RouteConfig in device controller stage
        at com.freshwater.stage.device.DeviceControllerStage.handleEvent(DeviceControllerStage.java:278)
        at com.freshwater.stage.BaseStage.handleEvents(BaseStage.java:55)
        at seda.sandStorm.internal.TPSThreadManager$stageRunnable.run(TPSThreadManager.java:216)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: Java heap space
2010-04-15 10:15:35,062 [TP-Processor15] (BpmObjectCreator.java:231) ERROR - tried to update dc satopaz5056 and it has no monitors assigned

 

Simply check these files for an error "java.lang.OutOfMemoryError: Java heap space".

Even with 1.4 MB not being a BIG file, it might be too big for your current BSM configuration.

 

If you do find such an error, modify the file <BAC_install_dir>\bin\mercury_as_vm_params.ini
from (for example)
 -Xms800m -Xmx800m -XX:NewSize=160m -XX:MaxNewSize=160m -XX:PermSize=228m -XX:MaxPermSize=228m
to (for example)
 -Xms800m -Xmx1200m -XX:NewSize=160m -XX:MaxNewSize=160m -XX:PermSize=228m -XX:MaxPermSize=228m
restart BSM, and try to upload the script again.
 
If it still fails, the value for -Xmx might need an ever higher value.

 

If you cannot find a OOM error in BSM, then the issue most likely is NOT BSM JVM heap space related.

 

Greetings

Siggi

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
HP Expert
Siggi Gladitsch
Posts: 294
Registered: ‎03-11-2010
Message 8 of 10 (170 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

I forgot to add one thing (thanks to PatW for reminding me):

After deploying a patch or using the Connection Wizard or changing the Server Deployment these changes will be overwritten.

 

Greetings

Siggi

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Regular Visitor
mohamedshahat
Posts: 4
Registered: ‎11-29-2013
Message 9 of 10 (166 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

The referred logs don't contain such an error should i also change the values ?

 

Please use plain text.
HP Expert
Siggi Gladitsch
Posts: 294
Registered: ‎03-11-2010
Message 10 of 10 (146 Views)

Re: HP BSM 9.20 Error: Failed to create script. System error occurred: Java heap space

Well,

 

then the only idea I have is to use the scientific approach:

- reproduce the issue

- hopefully something has been looges somewhere

- install a tool like GrepWin and then search all logs for the string

"java.lang.OutOfMemoryError: Java heap space"

or

"java.lang.OutOfMemoryError"

or

"Java heap space"

 

If you find the error in one of the log sbelonging to a specific BSM service / process, it can be analyzed further.

 

Greetings

Siggi

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation