1753297 Members
6917 Online
108792 Solutions
New Discussion юеВ

OutOfMemoryError

 
Varun_5
Occasional Advisor

OutOfMemoryError

Hi,

I am facing problem with OutOfMemoryError on HP-UX with Java , I am getting following error very frequently.
==================
[#|2006-08-03T15:51:20.408+0530|WARNING|sun-appserver-ee8.2|javax.enterprise.sys
tem.stream.err|_ThreadID=365;|java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:574)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.j
ava:833)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SS
LSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.
java:619)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.ja
va:59)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl_Stub.getDefaultDomain(U
nknown Source)
at javax.management.remote.rmi.RMIConnector$RMIClientCommunicatorAdmin.c
heckConnat com.sun.jmx.remote.internal.ClientCommunicatorAdmin$Checker.run(Clien
tCommunicatorAdmin.java:165)
at java.lang.Thread.run(Thread.java:595)
==================

Please suggest, how we can tune jvm to avoid such Error. I have already tried with HPjconfig and kernel parameter are up to date.

Looking forward for response.
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: OutOfMemoryError

Posted in wrong forum, moved
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Michael Steele_2
Honored Contributor

Re: OutOfMemoryError

any chance you can post your glance memory report? and

swapinfo -tam
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: OutOfMemoryError

Shalom,

Java is a big resource hog.

http://www.hpux.ws/system.perf.sh

To find out what resource its hogging.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Varun_5
Occasional Advisor

Re: OutOfMemoryError

Output of swapinfo -tam is:
PCT START/
TYPE AVAIL USED FREE USED LIMIT
dev 4096 0 4096 0% 0
reserve - 773 -773
memory 1527 129 1398 8%
total 5623 902 4721 16% -
Varun_5
Occasional Advisor

Re: OutOfMemoryError

I need one more information, i have tuned my machine kernel parameter and as well as jvm option as much as possible and i am still trying.
How i can raise a bug on jvm of HP-UX?
Pupil_1
Trusted Contributor

Re: OutOfMemoryError

What's the java heap size min and max values set?
There is always something new to learn everyday !!