GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using stack size and remote debugger with java...
Operating System - HP-UX
1846552
Members
2586
Online
110256
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
Forums
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
04-15-2004 04:48 AM
04-15-2004 04:48 AM
I am trying to start up java 1.4.2.00 specifying my initial and max heap sizes along with using remote debuging. I can start java with either the -Xms and -Xmx options or the -Xrundwp option fine. When I try to use both, I get a message about no transport identified and the jvm stops.
java -server -Xms64m -Xmx2048m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket
,address=8787,server=y,suspend=n
Produces the following error:
ERROR: No transport specified.
Invalid JDWP options:
Error occurred during initialization of VM
-Xrun library failed to init: jdwp
How can one set the heap size and still use remote debugging?
java -server -Xms64m -Xmx2048m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket
,address=8787,server=y,suspend=n
Produces the following error:
ERROR: No transport specified.
Invalid JDWP options:
Error occurred during initialization of VM
-Xrun library failed to init: jdwp
How can one set the heap size and still use remote debugging?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 07:30 AM
04-15-2004 07:30 AM
Solution
The problem seems to be that java drops the part of -Xrunjdwp after the :. It happens when the java program decides to exec the java_q3p version to ensure that it can access more than 1500m of data.
The simple workaround is to use an -Xmx size under 1500. If you need to use more than 1500m of heap, you may be able to invoke java with -d64 to use the 64 bit version. That doesn't have the problem with -Xrunjdwp. It would require 64-bit versions of any JNI libraries that you use.
Another possibility would be to invoke the 32-bit java_q3p program directly. You would need to set environment variables that normally are set by the java program. In particular, you would need to set SHLIB_PATH. Here is one example invocation-
SHLIB_PATH=/opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:/opt/java1.4/jre/../lib/PA_RISC2.0 /opt/java1.4/bin/PA_RISC2.0/java_q3p -server -Xms64m -Xmx2048m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp
The simple workaround is to use an -Xmx size under 1500. If you need to use more than 1500m of heap, you may be able to invoke java with -d64 to use the 64 bit version. That doesn't have the problem with -Xrunjdwp. It would require 64-bit versions of any JNI libraries that you use.
Another possibility would be to invoke the 32-bit java_q3p program directly. You would need to set environment variables that normally are set by the java program. In particular, you would need to set SHLIB_PATH. Here is one example invocation-
SHLIB_PATH=/opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:/opt/java1.4/jre/../lib/PA_RISC2.0 /opt/java1.4/bin/PA_RISC2.0/java_q3p -server -Xms64m -Xmx2048m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 07:33 AM
04-15-2004 07:33 AM
Re: Using stack size and remote debugger with java 1.4
That example using java_q3p directly is missing the same -Xrunjdwp options that started this discussion. :-)
You would obviously want to include the full -Xrunjdwp argument-
-Xrunjdwp:transport=dt_socket
,address=8787,server=y,suspend=n
You would obviously want to include the full -Xrunjdwp argument-
-Xrunjdwp:transport=dt_socket
,address=8787,server=y,suspend=n
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.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP