- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: java.lang.OutOfMemoryError
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 02:12 AM
тАО06-01-2005 02:12 AM
java.lang.OutOfMemoryError
This is what I found in the pdf(UXPerfCookBook.pdf), which I downloaded from HP site regarding performance tuning:
"Be careful about programs getting "out of memory" errors, though, because those are usually related to not having
enough swap space reservable or hitting a configuration limit. Relevant kernel parameters are dbc_min_pct, dbc_max_pct, bufpages, nbuf, maxswapchunks,swapmem_on, maxtsiz, maxssiz, and especially maxdsiz."
Also, on the forums on HP site, someone has posted regarding a similar error:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1116864734702+28353475&threadId=211942
Again here, they have recommended tuning of kernel parameters, if required, and updating with latest HP-UX patches and HP-UX for Java patches.
The attached file shows the current values the kernel parameters are set to.
Wondering if my current values for the above mentioned parameters are okay or if bumping up the value of any of the above mentioned parameters would help me?
If I need to increase any of the parameters, to what value should they be set?
Someone please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 02:35 AM
тАО06-01-2005 02:35 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 03:21 AM
тАО06-01-2005 03:21 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 03:22 AM
тАО06-01-2005 03:22 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 10:43 AM
тАО06-01-2005 10:43 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 12:56 PM
тАО06-01-2005 12:56 PM
Re: java.lang.OutOfMemoryError
I recently did a lot of Research and FineTuning JVm based application I will be glad if I can be of any help to you.
Can you send me following details
JVM Version.
$uname -a
And Patches installed on the server.
Thanks,
Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 01:00 PM
тАО06-01-2005 01:00 PM
Re: java.lang.OutOfMemoryError
Also Can you send me the details of websphere config.
How much you have allocated to the webSphere
what are the values you have specified in
Xmn and Xmx parameter.
Thanks,
Amit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 05:02 PM
тАО06-01-2005 05:02 PM
Re: java.lang.OutOfMemoryError
http://www.hp.com/products1/unix/java/java2/hpjconfig/
Also you can increase the Minimum and Maximum memory of the JVM/Java process by using following option with java-JVM:
-ms256m -mx512m
Regards,
Ganesha Sridhara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 05:51 AM
тАО06-02-2005 05:51 AM
Re: java.lang.OutOfMemoryError
HP-UX thprod22 B.11.11 U 9000/800 1602309313 unlimited-user license
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_17_15 PA2.0, mixed
mode)
Also, find the values of Xms and Xmx in the attached gif.
Note: We have a vertical websphere cluster of 3 clones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 05:55 AM
тАО06-02-2005 05:55 AM
Re: java.lang.OutOfMemoryError
-Xms256m and -Xmx512m
I do not know, how I can find the patches installed on HP-UX? I tried to use check_patches utility but it requires root access, which I do not have. Please let me know....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 06:14 AM
тАО06-02-2005 06:14 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 07:10 AM
тАО06-02-2005 07:10 AM
Re: java.lang.OutOfMemoryError
java.lang.OutOfMemoryError: unable to create native thread
Thanks,
Amoli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 10:33 AM
тАО06-02-2005 10:33 AM
Re: java.lang.OutOfMemoryError
First I would like to ask few question
1. Is there any specific requirement you are still running JVM 1.3.X why dont you upgrade to 1.4.x it will most of your problems.
2. Why you have only allocated 512M to websphere, I think you have enoguh memory installed on the server why dont you change it to Xms=512M and Xmx=1024M
But before you do that it's better you upgrade JVM version.
Please let me know if you can opt to upgrade JVM version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 10:39 AM
тАО06-02-2005 10:39 AM
Re: java.lang.OutOfMemoryError
The error
java.lang.OutOfMemoryError: unable to create native thread
Represents that the O.S. is not allowing your JVM to create more threads and it basically give wrong error message which is
java.lang.OutOfMemoryError
You can change the parameter to 4096 and see but dont make such changes to production test it on you DEV or QA box and see.
Also, be careful with kernel parameter's as they overall affect how kernel behaves with other application.
You will also need to tune related kernel parameters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 10:39 AM
тАО06-02-2005 10:39 AM
Re: java.lang.OutOfMemoryError
The error
java.lang.OutOfMemoryError: unable to create native thread
Represents that the O.S. is not allowing your JVM to create more threads and it basically give wrong error message which is
java.lang.OutOfMemoryError
You can change the parameter max_thread_proc to 4096 and see but dont make such changes to production test it on you DEV or QA box and see.
Also, be careful with kernel parameter's as they overall affect how kernel behaves with other application.
You will also need to tune related kernel parameters.