Operating System - HP-UX
1752578 Members
4788 Online
108788 Solutions
New Discussion

Java application in HPUX 11i v2

 
Muhammad Farhan Nasir
Regular Advisor

Java application in HPUX 11i v2

 

how to set -Xmx  -Xms sizes in java.

 

Detail:
1. Oracle application
2. HPUX 11i v2 with quality pack Dec 2010
3. java 1.5

getting attached error when run larg report.

Muhammad Farhan Nasir
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Java application in HP-UX 11.23

>how to set -Xmx  -Xms sizes in java?

 

It should be document in the Java Docs:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJDKJRE50

» JDK, JRE, and Plug-In 5.0.x Release Notes
» HP-UX 11i Java Technical Documentation

Java Memory Management on HPUX:

http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02645664/c02645664.pdf

 

These options seem to set the heap size and nothing to do with thread stacks.

 

>getting attached error when run report.

>emsg:was terminated by signal 6

>An irrecoverable RSE stack overflow has occurred.

>SIGSEGV   11*  segmentation violation

 

I'm not sure where that message about RSE stack overflow came from?  If this is actually true, the java thread's stack is too small, then you need to make them larger.

 

Do you have the latest java patches?  If so, you need to contact Support.

Muhammad Farhan Nasir
Regular Advisor

Re: Java application in HP-UX 11.23

Patch bundle PHCO_41946  already update

Please note: small reports are worked fine, only getting errors when run large reports.

Some queries are below please answer.

 

First : we have Java 1.5 version installed see below output.

------

$ java -version
java version "1.5.0.02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.02-_14_oct_2005_17_51)
Java HotSpot(TM) Server VM (build 1.5.0.02 jinteg:10.14.05-23:46 IA64, mixed mode)

-------

But in reports it’s showing java 1.4.2 see following (error report attached again please check)

 

Java VM: Java HotSpot(TM) Server VM (1.4.2 1.4.2.07-050121-21:06-IA64N IA64 mixed mode)

 

 ---

 I have tried to set heap sizes, check below

 

$ java -Xms128m -Xmx1024m
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available
    -server       run the HotSpot VM, tuned for long-lived,
                  server applications (default)
    -hotspot      synonymous to the -server option
    -client       run the HotSpot VM, tuned for short-lived,
                  GUI applications
                  If present, the option to select the VM must be first.
                  The default VM is -server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions

#

----------------------

How do I set the heap sizes?

 

your provided links, I understand mmap need to ON and found below command.

 

java -d64 -Xmpas:on <java class> 

 

Please let me know what <java class> is I don’t about, please advice

 

We are using oracle, which oracle file have heap sizes setting?

Muhammad Farhan Nasir
Dennis Handly
Acclaimed Contributor

Re: Java application in HP-UX 11.23

>But in reports it’s showing java 1.4.2

 

That's most likely the problem.  You need to get support from Oracle to determine how to update the private copy of that java.  Probably in:

/prod/ebs/apps/tech_st/10.1.2/jdk/

Muhammad Farhan Nasir
Regular Advisor

Re: Java application in HP-UX 11.23

Any more advise ........

Muhammad Farhan Nasir
Dennis Handly
Acclaimed Contributor

Re: Java application in HP-UX 11.23

>Any more advise?

 

If you have a software support contract, you could talk to HP-UX Support.