Jvm exit code 128

I'm running a memory / cpu and thread intensive program that's using JIntegra for a com bridge. We're hammering our windows 2003 server machine with 4 gigs of ram pretty hard.
We're also using the java service wrapper to launch our java process. Under this heavy load I see this:
JVM process exited with a code of 128, setting the wrapper exit code to 128.
What is this exit code telling me?

test reply
Edited by: lhyang on Jun 3, 2008 3:30 PM

Similar Messages

  • Nasty Bug: Windows exit code 128

    Hi.
    I'm having weird exit code 128 bugs. It's apparently caused by my printing engine. Sometimes the problem occurs sometimes it doesn't. There isn't any exceptions thrown also. I'm using the java.awt.print API with a MediaTracker for tracking PNG images generated from my application.
    Does anyone know what's happening to my program?

    Found the problem. It doesn't occur anywhere in the JVM -- it occurs because I printed using Virtual PDF Printer and somehow it doesn't emulate a physical printer well.

  • Jdeveloper - Process exited with exit code 128.

    Oracle,
    I downloaded Jdeveloper from Oracle website. I tried to create simple helloworld jsp & tried to run from jdeveloper.
    I set project properties->compiler->use Javac also, but still it gives same error message in "Running Embedded OC4j server Log"
    In Messages tab
    ============
    Compiling...
    [1:04:07 PM] Successful compilation: 0 errors, 0 warnings.
    In Running Embedded OC4j server Log
    ============================
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\unzipped\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\unzipped\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath C:\unzipped\jdevstudio1013\j2ee\home\oc4j.jar;C:\unzipped\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=hoproxy.scif.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.rapidscontrol.biz|ecf|10.*|*.scif.com|localhost|127.0.0.1 -Dhttps.proxyHost=hoproxy.scif.com -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=*.rapidscontrol.biz|ecf|10.*|*.scif.com|localhost|127.0.0.1 -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\unzipped\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code 128.
    Please advise
    Thanks
    Christy

    Christy,
    what is the operation system you are running JDeveloper on ?
    To further debug the problem, can you open a command line at <Jdeveloper Directory>\j2ee\home
    (assuming Windows) type
    ..\..\jdk\bin\java oc4j.jar
    provide an administration password when asked. This command starts the embedded OC4J as a stand-alone server and prints messages to the console window
    Let us know if this gives more detailed error messages or if it starts up
    Frank

  • HELP!! Process exited with exit code 128.

    Hi all,
    I am using JDeveloper 10G to develop a struts project. I use the struts-tiles.tld to construct the layout.
    &lt;tiles:insert page="classicLayout.jsp" flush="true"&gt;
    &lt;tiles:put name="title" value="User and Assigned Role" /&gt;
    &lt;tiles:put name="header" value="menuTemplate.jsp" /&gt;
    &lt;tiles:put name="menu" value="TestPoint.jsp" /&gt;
    &lt;tiles:put name="body" value="ARM001800.jsp" /&gt;
    &lt;tiles:put name="footer" value="DebugPage.jsp" /&gt;
    &lt;/tiles:insert&gt;
    However, when I run the project, then the OC4J Server terminated with this error code : Process exited with exit code 128.
    What happen??
    PS: I tried to remove the last 2 tags: body and footer. The Server did not terminate, but with some exceptions which related to tiles library.

    This type of error may occur because of developers mistake.
    This error occurs when any function is called recursively in a loop.
    The server calls the same function again and again in a loop and hence the server goes in infinite loop. This gives the error "Process exited with exit code 128".
    You need to check your code thoroughly for such mistake.
    Nital.
    i-engineering.com

  • Process exited with exit code 128 using embedded OC4J (jdevsetudio1013)

    I've just downloaded Oracle JDeveloper (10.1.3) - Production JAN 2006 version (Studio Edition), installied and configure as the install guide, downladed SU5 (Studio Edition version 10.1.3.0.4 Build JDEVADF_10.1.3_NT_060125.0900.3673) and JUnit extensions and SR. When I tried to run Oracle ADF SRDEMO Application, I´ve just got this error message:
    [EJB 3.0]: Assigning default-data-source=jdbc/SRDemoDS, specified in projects EJB 3.0 properties
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    E:\mywork\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    "C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exe" -ojvm -classpath E:\jdevstudio1013\j2ee\home\oc4j.jar;E:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config E:\mywork\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code 128.
    I'm using a Microsoft Windows Server 2003 Standard Edition Service Pack 1 inside a VMware workstation (version 5.5.2.build-29772) with 1.4GB of RAM with an Oracle 10gR2 for windows (10.2.0.1.0)
    I don´t know if it is a configuration problem or that Windows Server 2003 SP1 is not supported or any other problem.
    Any help you can give on this would be much appreciated.
    Thanks,
    Orlando

    thanks for your idea...but in my environment there no JAVA_OPTIONS defined. This is a copy of my console after running set:
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\apache-ant-1.6.5
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    APR_ICONV_PATH=C:\Program Files\Subversion\iconv
    CATALINA_HOME=C:\ASF\Tomcat 5.5
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=OGJEE
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Administrator
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
    JBOSS_HOME=C:\jboss-4.0.4.GA-Patch1
    LOGONSERVER=\\OGJEE
    M2_HOME=C:\ASF\maven-2.0.4
    M2_REPO=C:\Documents and Settings\Administrator\.m2\repository
    MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512m
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Support Tools\;c:\Progra
    m Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\S
    ystem32\Wbem;;C:\Program Files\Subversion\bin;C:\Program Files\Java\jdk1.5.0_08\
    bin;C:\ASF\maven-2.0.4\bin;C:\Program Files\MySQL\MySQLServer5.0\bin;C:\apache-a
    nt-1.6.5\bin;;C:\Program Files\STI\bin\pc-win95
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;E:\oracle\prod
    uct\10.2.0\db_1\perl\5.8.3\lib;E:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWi
    n32-x86;E:\oracle\product\10.2.0\db_1\perl\site\5.8.3;E:\oracle\product\10.2.0\d
    b_1\perl\site\5.8.3\lib;E:\oracle\product\10.2.0\db_1\sysman\admin\scripts;
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0d08
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=OGJEE
    USERNAME=localadmin
    USERPROFILE=C:\Documents and Settings\Administrator
    windir=C:\WINDOWS
    tthanks anyway

  • "process exited with exit code 128"

    I have a problem. I downloaded the new Jdeveloper 10.3.1. When a try to
    run a class i always receive the error: "process exited with exit code
    128". The compilation is correct. My OS is Win2003 server SP1, I
    tried in a pc with the same OS and it doesn't work correctly.
    Someone has got an idea?

    I have the same "process exited with exit code 128" in my Win 2003 server environment running AMD 64 processor. My Win 2000 server setting runs okay.
    I can work that around by changing the Virtual Machine setting. Select anything other then 'ojvm' with run ok. I guess, the Oracle custom add-on is not working properly.
    Follow this path to change.
    goto Project properties->Run/Debug
    ->select your run configuration (Default if you have no others)
    -> change 'Virtual Machine:' to server, client, or hotspot.
    ojvm is the only virtual machine that doesn't work.
    There is one catch, however, by making this change code coach, and all other profiling tools will not run.

  • Process exited with exit code 128.why?

    I am creating the cuecard example of ADF ("create a sample dtaabound application") in Jdev 10.1.3 .
    In "Bind an ADF Faces Table Component to the Service Bean" step i am getting error.
    After draging table on to form(JSP page) it is not visible in the form.but in Structure window it is showing table.
    after runnung the jsp page,i am getting error in embeded OC4J server log as Process exited with exit code 128.
    why i am not getting table on the form ??????

    Now i am getting the table in the form after restarting the jdev10.1.3
    But in OC4J Server log i am getting "Process exited with exit code 128" while running the jsp page.why?????????

  • Eclipse failing to start - JVM Exit code 1

    Hello
    Apologies if this issue has already been posted.
    I am seeing that my Eclipse IDE is crashing everytime I try to start it, with JVM exit code 1.
    FYI, my version of java is:
    $java -version
    java version "1.5.0_12"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_12-b04, mixed mode)
    I am running it on openSuse 10.3 x86_64.
    The error I get is:
    JVM terminated. Exit code=1
    /usr/bin/java
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx256m
    -jar /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash
    -launcher /home/suman/downloads/test/eclipse/eclipse
    -name Eclipse
    --launcher.library /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.3.R33x_v20080118/eclipse_1023.so
    -startup /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata 348015
    -vm /usr/bin/java
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx256m
    -jar /home/suman/downloads/test/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    Any help would be much appreciated.
    Thanks
    Debz.

    Thanks.
    But I was wondering what is JVM EXit Code 1 ? Hoping its not something to do with CLASSPATH settings or anything like that.
    Rgds
    Debz.

  • JVM Exit code=11

    Hello All!
    On linux red hat 9 where start IBM WebSphere Studio 5
    happend error:
    JVM terminated, Exit code=11
    Where I find documentation about it?
    With best regards,
    Valery Bondarenko

    can you help me in this:
    i need a code [how to exit in java programing-in MS.DOS.
    Thanks..
    SAMIS                                                                                                                                                                                                       

  • JVM, exit codes and Windows 98

    Has anyone got System.exit(integer) to return a value other than 0 under Windows 98?
    Regardless of what integer I enter as an exit code, java.exe always seems to return 0. This does not seem to be the case under Windows NT, where the correct exit code is passed back.
    Is anyone aware of this problem/found a workaround?

    How are you checking the exit value under 98?

  • [ERROR] Runtime - Process can not continue exit code 128 No parrent...

    Hello,
    I tryed to run a simple ADF BC JSF Project, edited with JDeveloper 10.1.3 Running on a Windows 2003 Server Enterprise Edition x64.
    I have also installed a JVM for Win64.
    I connect to a database hosted on a remote machine. I have the ojvm selected in the Run settings.
    Can you please help me!
    Thank you!

    Try turning off DEP

  • JVM terminated exit code = ...

    When using wsad 5, and trying to start the server I obtain an error :
    JVM terminated exit code = -1073741819 E:\...\javaw.exe
    -cp E:\...\startup.jar org.eclipse.core.launcher.Main
    -oswin32
    -wswin32
    -arch x86
    -showsplash e:\...\eclipse.exe
    -showsplash 600 de programa\wsad\.\eclipse\eclipse.exe
    -data E:\...\workspace
    where can I find the meaning of JVM exit codes? or Does anybody knows what does this one means?
    thanks

    You might need to run Eclipse properly
    All arguments following (but not including) the -vmargs entry are passed directly through to the indicated Java VM as virtual machine arguments (that is, before the class to run). Note: If an Eclipse startup argument, such as -data, is provided after the Java vm arguments (-vmargs), Eclipse will not start and you will receive a "JVM terminated. Exit code=1" error.
    Running on Different VMs
    Running Eclipse on J9
    When running Eclipse on J9 version 1.5, it is recommended that you use the following VM options:
    eclipse.exe [eclipse arguments] -vm path_to_j9w.exe
    -vmargs -ms:32 -mm:2048 -mo:32768 -moi:32768 -mca:32 -mco:128 -mx:2000000
    When running Eclipse on J9 version 2.0, the default arguments chosen by J9W should be suitable. However, to override the parameters which are automatically set internally by the Eclipse executable, you must specify -vmargs with no following arguments as follows:
    eclipse.exe [eclipse arguments] -vm path_to_j9w.exe -vmargs
    Please refer to the J9 VM documentation and help for further information.
    Running Eclipse on the IBM Developer Kit, Java(TM) Technology Edition VM
    The default VM settings for IBM Developer Kit, Java(TM) Technology Edition 1.3 Linux work well for initial exploration, but are not sufficient for large scale development. For large scale development you should modify your VM arguments to make more heap available. For example, the following setting will allow the Java heap to grow to 256MB:
    -vmargs -Xmx256M
    for more details
    http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.platform.doc.user/tasks/running_eclipse.htm

  • Orphaned Agent Error - Unexpected Agent Exit. Code = 128

    Hello,
    I am currently running tests using the Load Testing Tool bundled with Oracle Application Testing Suit, to run performance tests for a web services application. Everything was running smoothly until I tried to run a total of 2000 users (200 users across 10 agent machines), which started to cause the tool to return "Orphaned Agent" errors ("Unexpected Agent exit. Code = 128" or "Unexpected Agent exit. Code = 1"). The Orphaned Agent errors aren't occuring right away, after user ramp up, it can be another 5 minutes or so before they are actually occuring. CPU and memory usage on the agent machines is not being maxed out (approx 30% usage).
    I am using build 8.50.0260 of OATS.
    I have checked the EmpStart.log file, and I am getting the following exception:
    ERROR [EmpStartMain] oracle.oats.empstart.PortListener
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at oracle.oats.utilities.DHAgreementHelper.performKeyAgreement(DHAgreementHelper.java:159)
    at oracle.oats.utilities.SecureServerSocket.accept(SecureServerSocket.java:41)
    at oracle.oats.empstart.PortListener.readFromSocket(PortListener.java:121)
    at oracle.oats.empstart.PortListener.run(PortListener.java:84)
    at java.lang.Thread.run(Unknown Source)
    ERROR [EmpStartMain] oracle.oats.empstart.PortListener
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at java.io.DataOutputStream.write(Unknown Source)
    at java.io.FilterOutputStream.write(Unknown Source)
    at oracle.oats.utilities.DHAgreementHelper.performKeyAgreement(DHAgreementHelper.java:156)
    at oracle.oats.utilities.SecureServerSocket.accept(SecureServerSocket.java:41)
    at oracle.oats.empstart.PortListener.readFromSocket(PortListener.java:121)
    at oracle.oats.empstart.PortListener.run(PortListener.java:84)
    at java.lang.Thread.run(Unknown Source)
    Hopefully someone can point me in the right direction :)
    Michael

    Hi Alex,
    Thank-you for your prompt response. I reduced the number of agents I was using to 5, with 400 users on each (2000 users total). I then changed the Tools > Options > Scenario Defaults to use Java Mode and updated the maximum heap size to both 512 and 1024, however the error still occurs.
    Here is the log from one of the agent machines
    INFO | jvm 1 | 2009/11/24 15:47:38 | INFO [AgentProcess] Launched process 3753803 for agent agId12902_rnd1409932225
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [AgentProcess] Exited process 3753803 for agent agId12902_rnd1409932225
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [ProcessRunner] Agent x33620:1099:queue/AgentPoolNotificationQueue:agId12902_rnd1409932225 exited, code = 128
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Messenger Loaded....
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Try server=x33620:1099 queue=queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Got ConnectionFactory
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Got queue queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Created queue connection.
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Created queue session.
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Connected to server=x33620:1099 queue=queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Try server=x33620:1099 queue=queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Got ConnectionFactory
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Got queue queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Created queue connection.
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Created queue session.
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Messenger] Connected to server=x33620:1099 queue=queue/AgentPoolNotificationQueue
    INFO | jvm 1 | 2009/11/24 15:52:03 | INFO [Request] [Host:x33620;Port:1099;Requestor ID:null;Requestor Key:JBOSS-x33620-1099;Requestor Queue:queue/AgentPoolNotificationQueue;Request ID:131;Request:stopagent;] - authentication successfull
    INFO | jvm 1 | 2009/11/24 15:52:03 | ERROR [EmpStartMain] Unknown agent ID: agId12902_rnd1409932225
    So it looks as though the memory is OK, however, for some reason half-way through the test the agent ID becomes unknown. This error is the same across all the agents.
    Thanks in advance,
    Michael

  • Runtime.getRuntime().exec(...) problems and exit codes

    Hi,
    I am trying to launch an application 4 times with different arguments from a Java app. I have tried doing it sequentially and in four different threads, but the results are the same: sometimes the 4 of them are properly launched, sometimes (the most of the times) only 3 are launched and sometimes only 2. I have tried with cmd and cmdarray[] as parameters for exec but the results are the same.
    This is one of the four threads I use:
    Runnable r1 = new Runnable(){
                        public void run(){
                             String ecgCommand = "./flute -S -m:" + Config.ECGS_FLUTE_IP + " -p:" + Config.ECGS_FLUTE_PORT + " -F:" + Config.ECGS + " -r:" + Config.ECGS_FLUTE_RATE + " -C";
                             System.out.println(ecgCommand);
                             InputStream ecgsStream = null;
                             InputStreamReader isr = null;
                             BufferedReader br = null;
                             try{
                                  ecgsProcess = Runtime.getRuntime().exec(ecgCommand, null, new File(Config.HOME_PATH + Config.FLUTE_PATH));
                                  String line;
                                  ecgsStream = ecgsProcess.getInputStream();
                                  isr = new InputStreamReader(ecgsStream);
                                  br = new BufferedReader(isr);
                                  StyledDocument styleDoc = mm.ecgFluteMessages.getStyledDocument();
                                  Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
                                  while((line = br.readLine()) != null && running){
                                       if(styleDoc.getLength() > 25000)     mm.ecgFluteMessages.setText("");
                                       styleDoc.insertString(styleDoc.getLength(), line+ "\n", def);
                                       mm.ecgFluteMessages.setCaretPosition(mm.ecgFluteMessages.getDocument().getLength());
                                  System.out.println(ecgsProcess.waitFor());
                             }catch(Exception e){
                                  try {
                                       br.close();
                                       isr.close();
                                       ecgsStream.close();
                                  } catch (Exception e1) {
                                       e.printStackTrace();
                   new Thread(r1).start();Adding a Thread.sleep between runnables doesn't have any effect.
    In addition, those processes that are not properly launched return an exit value of 255. I have searched for its meaning but I have found nothing. Could anybody tell me where can I find a list of the JVM exit codes in order to guess what is happening?
    Can anybody help me with this issue? Help is much appreciated.
    Thanks a lot

    I have been looking for it but it seems it has not any exit code list or any documentation regarding this. Anyway, I think 255 is a JVM error code (the last one, errors are numbered in modulo 256) which means that the error has nothing to do with JVM but with the application execution (flute in my case).
    I have added a prompt for the errorStream and I have this message for the 255 exited programs:
    not well-formed (invalid token) at line 15+
    And the four commands are like this:
    *./flute -S -m:239.255.255.253 -p:60102 -F:./ecgs -r:150 -C*
    *./flute -S -m:239.255.255.252 -p:60103 -F:./ads -r:150 -C*
    *./flute -S -m:239.255.255.251 -p:60104 -F:./pushvod -r:50 -C*
    *./flute -S -m:239.255.255.250 -p:60105 -F:./banners -r:150 -C*
    So, as the process is sometimes initialized properly and others it is not, it seems that there is a problem with the tokenizing of the command not happening always. As I have tried it with a single command line and with an array of command strings (the first for "./flute" and the followings for each argument) with the same results I can't understand why is this problem happening sometimes. Happening always would help me in giving a clue but that's not the case.
    Any idea? Thanks a lot.
    Edited by: dulceangustia on Apr 3, 2008 3:41 AM

  • How can a JVM terminate with an exit code of 141 and no other diagnostics?

    Hello,
    We are encountering a JVM process that dies with little explanation other than an exit code of 141. No hotspot error file (hs_err_*) or crash dump.  To date, the process runs anywhere from 30 minutes to 8 days before the problem occurs. The last application log entry is always the report of a lost SSL connection, the result of an thrown SSLException.  (The exception itself is unavailable at this time – the JVM dies before it is logged -- working on that.)
    How can a JVM produce an exit code of 141, and nothing else?  Can anyone suggest ideas for capturing additional diagnostic information?  Any help would be greatly appreciated!  Environment and efforts to date are described below.
    Thanks,
    -KK
    Host machine: 8x Xeon server with 256GB memory, RHEL 6 (or RHEL 5.5) 64-bit
    Java: Oracle Java SE 7u21 (or 6u26)
    java version "1.7.0_21"
    Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
    JVM arguments:
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSClassUnloadingEnabled
    -XX:MaxPermSize=256m
    -XX:NewSize=64m
    -Xms128m
    -Xmx1037959168
    -Djava.awt.headless=true
    -Djava.security.egd=file:///dev/./urandom
    Diagnostics attempted to date:
    LD_PRELOAD=libjsig.so.   A modified version of libjsig.so was created to report all signal handler registrations and to report SIGPIPE signals received.  (Exit code 141 could be interpreted as 128+SIGPIPE(13).)  No JNI libraries are registering any signal handlers, and no SIGPIPE signal is reported by the library for the duration of the JVM run.  Calls to ::exit() are also intercepted and reported.  No call to exit() is reported.
    Inspect /var/log/messages for any indication that the OS killed the process, e.g. via the Out Of Memory (OOM) Killer.  Nothing found.
    Set ‘ulimit –c unlimited’, in case the default limit of 0 (zero) was preventing a core file from being written.  Still no core dump.
    ‘top’ reports the VIRT size of the process can grow to 20GB or more in a matter of hours, which is unusual compared to other JVM processes.  The RES (resident set size) does not grow beyond about 375MB, however, which is an considered normal.
    This JVM process creates many short-lived Thread objects by way of a thread pool, averaging 1 thread every 2 seconds, and these objects end up referenced only by a Weak reference.   The CMS collector seems lazy about collecting these, and upwards of 2000 Thread objects have been seen (in heap dumps) held only by Weak references.  (The Java heap averages about 100MB, so the collector is not under any pressure.) However, a forced collection (via jconsole) cleans out the Thread objects as expected.  Any relationship of this to the VIRT size or the JVM disappearance, however, cannot be established.
    The process also uses NIO and direct buffers, and maintains a DirectByteBuffer cache. There is some DirectByteBuffer churn. MBeans report stats like:
    Direct buffer pool: allocated=669 (20,824,064 bytes), released=665 (20,725,760), active=4 (98,304)  [note: equals 2x 32K buffers and 2x 16K buffers]
    java.nio.BufferPool > direct: Count=18, MemoryUsed=1343568, TotalCapacity=1343568
    These numbers appear normal and also do not seem to correlate with the VIRT size or the JVM disappearance.

    True, but the JNI call would still be reported by the LD_PRELOAD intercept, unless the native code could somehow circumvent that.  Using a test similar to GoodbyeWorld (shown below), I verified that the JNI call to exit() is reported.  In the failure case, no call to exit() is reported.
    Can an OS (or a manual) 'kill' specify an exit code?  Where could "141" be coming from?
    Thanks,
    -K2
    === GoodbyeWorldFromJNI.java ===
    package com.attachmate.test;
    public class GoodbyeWorldFromJNI
        public static final String LIBRARY_NAME = "goodbye";
        static {
            try {
                System.loadLibrary(LIBRARY_NAME);
            } catch (UnsatisfiedLinkError error) {
                System.err.println("Failed to load " + System.mapLibraryName(LIBRARY_NAME));
        private static native void callExit(int exitCode);
        public static void main(String[] args) {
            callExit(141);
    === goodbye.c ===
    #include <stdlib.h>
    #include "goodbye.h"  // javah generated header file
    JNIEXPORT void JNICALL Java_com_attachmate_test_GoodbyeWorldFromJNI_callExit
      (JNIEnv *env, jclass theClass, jint exitCode)
        exit(exitCode);
    === script.sh ===
    #!/bin/bash -v
    uname -a
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    pwd
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    tail stdout.txt
    === script output ===
    [keithk@keithk-RHEL5-dev goodbyeJNI]$ ./script.sh
    #!/bin/bash -v
    uname -a
    Linux keithk-RHEL5-dev 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    export PATH=/opt/jre1.7.0_25/bin:$PATH
    java -version
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
    pwd
    /tmp/goodbyeJNI
    LD_PRELOAD=./lib/linux-amd64/libjsigdebug.so java -classpath classes -Djava.library.path=lib/linux-amd64 com.attachmate.test.GoodbyeWorldFromJNI > stdout.txt
    echo $?
    141
    tail stdout.txt
    JSIG: exit(141) called
    JSIG: Call stack has 4 frames:
    JSIG: ./lib/linux-amd64/libjsigdebug.so [0x2b07dc1bdc2f]
    JSIG: ./lib/linux-amd64/libjsigdebug.so(exit+0x29) [0x2b07dc1bea41]
    JSIG: /tmp/goodbyeJNI/lib/linux-amd64/libgoodbye.so [0x2aaab3e82547]
    JSIG: [0x2aaaab366d8e]       
    === ===

Maybe you are looking for

  • Possibly bricked Bios A on z77 mpower, how to recover?

    Quote from: Froggy Gremlin on 26-October-12, 10:57:07 Now that many motherboards are coming out with a back up bios, many people are asking about how to flash the failed bios. (BIOS A or B) All you need to do is download the bios you want to flash, t

  • Can't install Acrobat X Pro

    Trying to install Acrobat X Pro on Sony VAIO running Win7Pro 64bit. Always get toward end of install a "Rolling back action" msg as all the installed files are being removed. No problem installing on my XP computer. I've tried installing from hard di

  • Sales Order - How to make Delivery Date default to Lead Time?

    My scenario is this: - We have items that go thru several production stages before it is a finished item that can be sold. - Each production item has its lead time loaded. - I would like the delivery date of a finished item to equal the sum of the pr

  • Pegged Requirement Report

    Hi All, I am developing a report for pegged requirement, in that my requirement is , I want to display the component number , receipt number and its quantity ( Similar to the results that are displayed  in MD04 ). I am passing header component and th

  • Please Help!! /etc/master.passwd: no such file or directory.

    :( after I had restored my iMac with mount -uw /.... I had lost everything even my etc and var folder, and after I had finished restore I started up my iMac with a black screen saying /etc/master.passwd: no such file or directory. -sh-2.05b. I had tr