- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
11-22-2005 06:50 AM
11-22-2005 06:50 AM
I'm having some problems with Java (Java RTE/SDK 1.4)in HP-UX 11i:
$ ${JAVA_HOME}/bin/java -classpath $CLASSPATH:.:/TRAP/tushar MemoryTest 64
Mermory size is: 67108864
Successfully Captured memory
Hello World!
the above execution is successully for 64 MB
$ ${JAVA_HOME}/bin/java -classpath $CLASSPATH:.:/TRAP/tushar MemoryTest 75
Mermory size is: 78643200
Exception in thread "main" java.lang.OutOfMemoryError
at java.nio.Bits.reserveMemory(Bits.java:618)
at java.nio.DirectByteBuffer.
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:285)
at MemoryTest.main(MemoryTest.java:10)
the above execution fails for 75 MB
We need to test the above memory program for 10 GB of memory.
I'm including kernel parameters.
The RAM memory of the server is 96 Gb
Swap space is 16 Gb
Any suggestions?
Thanks..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 07:15 AM
11-22-2005 07:15 AM
SolutionFor a 64 bit system:
maxssiz_64bit
maxtsiz_64bit
shmmax
If you want to exceed 10GB make sure the values are set to allow that. By default, they're relatively small.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 07:22 AM
11-22-2005 07:22 AM
Re: java.lang.OutOfMemoryError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 08:41 AM
11-22-2005 08:41 AM
Re: java.lang.OutOfMemoryError
Thanks for your comments Jon and A. Clay, I'm not skillfully with Java, so, could you recommend the values for these kernel parameters, please?
Regards..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 08:49 AM
11-22-2005 08:49 AM
Re: java.lang.OutOfMemoryError
Set bufpages = 409600 to give you 1.6GB of buffer cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 09:23 AM
11-22-2005 09:23 AM