- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Out Of Memory ???
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
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
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
04-05-2002 12:19 AM
04-05-2002 12:19 AM
Out Of Memory ???
I am getting Java.Lang Out of Memory error when i run one of my application.Any clues ...what kernel params govern this or any other settings like ulimit and other things are reqd.
But i am not getting this error on the other machine having the same kernel param settings.
Any suggestions
thnks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 12:52 AM
04-05-2002 12:52 AM
Re: Out Of Memory ???
1. You have hit a memory limit like maxdsiz or shmmax.
2. Your system does not have enough reservable swap space for the amount of memory the Java process wants. Check the available swap space with 'swapinfo -atm'.
3. You are starting a lot of threads in your Java app and are hitting max_thread_proc or nkthread.
The most common cause is number 3, because by default max_thread_proc is quite small and large java apps usually need a lot more. I suggest you increase max_thread_proc, and perhaps maxdsiz, shmmax and nkthread as well depending on what their current values are.
Also have a look at the Java FAQ:
http://www.hp.com/products1/unix/java/java2/sdkrte1_3/faq.html
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 02:04 AM
04-05-2002 02:04 AM
Re: Out Of Memory ???
maxdsiz =0xC0000000
max_thread_proc =512
and swap info o/p is given below...
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
dev 1000 0 1000 0% 0 - 0 /dev/vg00/lvol10
dev 1000 0 1000 0% 0 - 0 /dev/vg01/lvol18
dev 3000 0 3000 0% 0 - 0 /dev/vg01/lvol120
reserve - 1726 -1726
memory 13312 1539 11773 12%
total 19336 3265 16071 17% - 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 02:37 AM
04-05-2002 02:37 AM
Re: Out Of Memory ???
It might also help to get a tusc trace of the failing process, that way we'll know which system call is failing and what the errno value is.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 02:49 AM
04-05-2002 02:49 AM
Re: Out Of Memory ???
Hi,
Things to check:
1. What heap-size do you specify when
you start the java application?
2. Required patches for java insalled?
You may download the HPjconfig tool
to check the patch-level and kernel
parameters. Download from www.hp.com/go/java
3. Check what arguments that are used
when starting java. I have seen
this option used:
-XX:+DisableExplicitGC which very
easily will give the error you see.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 02:57 AM
04-05-2002 02:57 AM
Re: Out Of Memory ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 03:24 AM
04-05-2002 03:24 AM
Re: Out Of Memory ???
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.2/
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 04:02 AM
04-05-2002 04:02 AM
Re: Out Of Memory ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 04:02 AM
04-05-2002 04:02 AM
Re: Out Of Memory ???
http://dsportal.eservices.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1608,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2002 01:04 AM
04-06-2002 01:04 AM
Re: Out Of Memory ???
<
is this error related to memeory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2002 01:21 PM
04-06-2002 01:21 PM
Re: Out Of Memory ???
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Bill Hassell, sysadmin