Service Desk Practitioners Forum
cancel

<Trace> java.lang.OutOfMemoryError: Java heap space

SOLVED
Go to solution
Highlighted
Gurevich
Super Contributor.

<Trace> java.lang.OutOfMemoryError: Java heap space

Hi all!

I`ve got 2 app servers. One is running ok, but another gets " java.lang.OutOfMemoryError: Java heap space"

Here are their start logs:
1) good server

hp OpenView service desk 4.5 (v4.5.0588.2405 (SP24))
Copyright (c) 2004 Hewlett-Packard Development Company, L.P. All Rights Reserved.
Server settings file: C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\server\server_settings.xml
Install folder : C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\server\
Data folder : C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\server\
Java runtime name : Java(TM) 2 Runtime Environment, Standard Edition
Java runtime vendor : Sun Microsystems Inc.
Java runtime version: 1.4.2_09-b05
Java runtime home : C:\j2sdk1.4.2_09\jre
Servername : hpdesk2.mydomain
IP Address : 10.45.1.49
OS name : Windows 2003
OS version : 5.2
OS architecture : x86
Started.
Started.
Starting agent manager on hpdesk2.mydomain
Job queue monitor starting.
Starting monitor for failed or expired jobs.
Started.
Starting multicast listener.
Started.
Initialized Oracle Thin JDBC Driver DataSource
Initialized Oracle Thin JDBC Driver DataSource
Restart DB Connection Checker
Starting Business Layer.
Getting system information from database.
Running in multiple server mode.
The socket timeout is set to 1000 milliseconds.
7 REPLIES
The Pike
Acclaimed Contributor.
Solution

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

The differences are a good starting point. It looks like your system is not being properly maintained.

Java 1.6.0 is not supported in combination with SP24. Switch back to Java 1.4.2.

If you are using Oracle 10g, you should be using the latest version of the JDBC driver which is included with SP releases.

Details on Java and JDBC driver are available in your SP readme file.

Hope this helps.
Points are welcome.

The Pike
Err_1
Acclaimed Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

Check your server's java configuration.

See the main difference:

1. good server:
Java runtime version: 1.4.2_09-b05
Java runtime home : C:\j2sdk1.4.2_09\jre


2. Bad server:
Java runtime home : C:\Program Files\Java\jre1.6.0_07
Servername : hpdesk02.mydomain

Java 1.6 is not certified to work in Service Pack 24.

I would recommend you downgrade to Java 1.4 to solve.

Regards;
Randall Barrantes
SW Support Delivery Manager
Gurevich
Super Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

>Details on Java and JDBC driver are available in your SP readme file.

didn`t find it in Document ID: SDSK_00148

Anyway, i need java 1.6 for some custom programs, using SD API. I can move them to another server, but it`s not a very good idea. Which SP starts normally support java 1.6?

Else, i`ll try to install 2 jre versions. If it will work, it will be best variant.
The Pike
Acclaimed Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

> didn't find it in Document ID: SDSK_00148

That's cause document SDSK_00148 is not the Service Pack readme.

The Service Pack readme is an html document included in the doc folder within the SDSK_00148.exe package. Extract the contents of the package, say, with WinRAR, and you should be able to see what I'm talking about.


> Which SP starts normally support java 1.6?

SP30.


> Else, i'll try to install 2 jre versions. If it will work, it will be best variant.

That also works. Just make sure the SD appserver startup line calls for the Java Virtual Machine library of the right version. There are several threads discussing this here in the forums.

Hope this helps.
Points (and pints) are welcome!

The Pike
Kumar Dilip
Honored Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

Hi,

U have to do some maintenance activity on the OVSD Server.

1st of all , in the console, go to tools --> Options and then go to advanced and then in that select purge cache on exit. Then check the no of scheduled job. Are they really required? If not remove them. Also check the Java Version.
If there is integration, go to the integration folder and delete the queue.

HTH
The Pike
Acclaimed Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

With such low number of scheduled tasks, I wouldn't even worry. I can't see how purging the client cache would have any effect on this particular issue we're discussing.

Just avoiding the confusion.

Oh, btw, I'd love to see some points assigned to my previous post.

The Pike
Gurevich
Super Contributor.

Re: <Trace> java.lang.OutOfMemoryError: Java heap space

>Oh, btw, I'd love to see some points assigned to my previous post.

Pike, I had no time to check your info. Will submit points after that.