- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Java VM could not start with 1024M heapsize in...
Operating System - HP-UX
1753725
Members
4514
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО03-17-2009 09:40 AM
тАО03-17-2009 09:40 AM
Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit
Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit
- I am trying to start java vm via JNI as given in link below
http://java.sun.com/docs/books/jni/html/invoke.html
- If I set heap size ie <= -Xmx512M it starts fine, but with 1024M heapsize VM is not able to start saying no heap space to allocate error.
(Machine has 8 gig RAM so that is not a issue).
Can anyone clarify what could cause this ?
- If i use
jdk/bin/java -Xmx1024M it works fine
The issue is only with creating VM from C code via JNI (link above)
- I am trying to start java vm via JNI as given in link below
http://java.sun.com/docs/books/jni/html/invoke.html
- If I set heap size ie <= -Xmx512M it starts fine, but with 1024M heapsize VM is not able to start saying no heap space to allocate error.
(Machine has 8 gig RAM so that is not a issue).
Can anyone clarify what could cause this ?
- If i use
jdk/bin/java -Xmx1024M it works fine
The issue is only with creating VM from C code via JNI (link above)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 10:00 AM
тАО03-17-2009 10:00 AM
Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit
The answer might be in Bill's reply in http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1143221
You need to reduce your heap size slightly.
You need to reduce your heap size slightly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 10:12 PM
тАО03-17-2009 10:12 PM
Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit
Thanks ,
- Reducing heap space is not an option for me as program needs that much memory
- But the kernel params are already set to 3GB , hence wouldnt java already have capability to init with 1G memory.
maxdsiz 3GB
maxdsiz_64bit 3GB
- I am little confused by Bill's post in the link as he says set it to 1800M while OP said his maxdsiz is already 4G
- Does this mean , one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G
Thanks in advance
- Reducing heap space is not an option for me as program needs that much memory
- But the kernel params are already set to 3GB , hence wouldnt java already have capability to init with 1G memory.
maxdsiz 3GB
maxdsiz_64bit 3GB
- I am little confused by Bill's post in the link as he says set it to 1800M while OP said his maxdsiz is already 4G
- Does this mean , one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 10:35 PM
тАО03-17-2009 10:35 PM
Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit
If you don't have any 32 bit JNIs, you should forget about 32 bit and use 64 bit with -d64.
>Does this mean, one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G
Yes, that matches the constraints.
>Does this mean, one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G
Yes, that matches the constraints.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP