Critical: Java app Processes dying in Linux

Hi,
I have come across a critical error on our production system. We have some java apps running as linux background processes. We used to run these off a jdk1.3 box with no problems using
nohup java App &
We have upgraded to jdk1.4 but very randomly our apps are just disappearing from the background processes!
I have using the -verbose and -Xprof options to java and found this logging information..
Flat profile of 0.11 secs (1 total ticks): SIGHUP handler
Thread-local ticks:
100.0% 1 Blocked (of total)
I don't know if this holds any clues but a SIGHUP is a hangup signal and even though we use nohup, it does seem to kill the processes.
Would be very grateful for advice.

Following links can explain about -Xrs and other options.
http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html
http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/java.html

Similar Messages

  • Fonts in java apps for win and linux

    Hi everyone.
    i need to build an application mult-plataform, to run in windows and linux...
    but i don�t know waht font i must use...the default font that java takes doesn�t exist in linux (dialog)...
    waht font should i use in my app??
    thanx

    For going multi-platform it is easiest to stick to the logical fonts: Fonts named "Serif", "SansSerif", "Monospaced", "Dialog", and "DialogInput".
    These fonts are guaranteed to exist on any platform, although their implementations may be different. If you use others then you'll have to figure out how to deal with cross platform issues.
    Jeff

  • Java app not running in linux

    I developed an application in windows and ran successfully. The same i ran in linux and getting the follwing error.
    Please help.
    Thanks
    [root@uma apple]# java -jar apple2.jar
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_10/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
            at java.lang.Runtime.loadLibrary0(Runtime.java:788)
            at java.lang.System.loadLibrary(System.java:834)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
            at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
            at java.awt.Component.<clinit>(Component.java:506)
            at apple2.main(apple2.java:628)
    [root@uma apple]#

    It's probably not happening because you missed the -c from the su command. However this isn't the correct approach to daemon processes on linux (which is what you're after).
    What you need to do is to place a script in the /etc/init.d directory. This script should take a single argument and start the daemon if the argument is "start", and stop it if "stop". Check out the scripts already in there to see how it's done.
    Then go to System Settings/Server settings/Services and enable the new service for the normal run level.

  • File drag and drop from java app to file system - Linux problem

    Hi all,
    I am developing an application for files archiving, with a graphical user interface. The files are showed in a JList, and I implemented drag and drop feature for it. It works well for Windows platform, but not at all for Linux (Ubuntu).
    Under Linux, file export with DND from the archive to file system does not work.
    To extract a file with DND, we can't know the target destination folder, so I create a temp file (file extracted from the archive is wrote to OS tmp dir), and the system is expected to handle the DND action.
    The temp file is correctly created (original data is well retrieved), but Ubuntu does not want to copy or move it via DND.
    I get a system dialog window (while extracting file "test1") :
    Error while moving
    There was an error getting information about "[tmp/60lp1t7egl/test1]".
    Show more details > Operation not supported
    (Cancel, Skip all, Skip, Retry)
    Can it be a rights problem ?
    Any idea ?
    Regards,
    Biibox

    Until the 3rd party image editor developers provide us with the Photos extensions for using their app from within Photo we'll have to export to the Desktop, edit there in the apps and either import the new file into Photos or use it elsewhere.

  • Way to display the output of tail command in a Java app

    Hi,
    I have a Java app running in the Linux environment. The Weblogic outputs get written to a log. I would like to design a screen in my app that will enable me to monitor my logs. I normally log into the Linux machine and do a tail -f on the log.
    tail -f Managed_1.logI would like to run this tail -f command from my Java app so that I am able to view the log proress from my app itself. I know we can use Runtime to run external programs but this is a case where a command will be executed continuously and the output will need to be displayed in my app, more specifically on a JSP.
    Any ideas would be most appreciated.
    Thanks and regards,
    Ganesh

    I had a look at the API for the Process class which
    lists an abstract method called getOutputStream().
    What I am not clear is that the documentation says
    that the exec method of Runtime will return an
    instance of a subclass of Process. Does this mean
    that the getOutputStream() method would have already
    been coded for the subclass instance returned?Yes.
    And even if we do get the OutputStream from the tail
    -f process, we will still have to read and display
    the info on a line by line basis. Will this happend
    to be fast enough to macth atleast to some extent the
    speed at which the log is written to?There are two ways to answer this:
    1. Ask somebody who knows how fast the log is written to.
    2. Try it and see.
    My approach would be the second option.

  • Java Runtime on top of Linux Kernel?

    Hi all,
    Im trying to illustrate a concept (demo) where i can run a dedicated java app on top of my linux development kit.
    Im having no luck. I can develop C based app's in eCos and 'download' the app through serial connection from PC to Linux Dev Kit.
    I would like to run a Java app (ME) on my Linux Dev Kit, is this possible? I mean, can I get the Java Runtime to work with an embedded device?
    I couldn't find a similar topic on the forums (Ive probably not looked hard enough) could anyone point me in the right direction.
    Many thanks
    Harry.

    You can certainly use JNI. You will have to (in your code) somehow specify which C++ libraries to load for which system. For example, for windows, load xxx.dll, for hpux, load xxx.sl, etc. I don't know how to find the operating system in Java, someone else might be able to reflect on that.
    Kamran

  • Deploying Java Apps to PDAs

    Hi,
    i wanted to know how to deploy Java Apps to PocketPC and Linux-based PDAs.
    can it be done directly frm the toolkit?

    Hi,
    Check if your device supports OTA. If it is supported put your application JAD and JAR file in some webserver and hit the server from your deivce to download the app. Dont forget to set the MIME type of the server

  • Run java as a different process name in Linux

    I have multiple java applications running on a linux platform. When I look at the process list, they all say java. I want them to have a unique process name. The closest I have gotten is starting the java app in a script, and that script name shows up as well as the java app. This could be all fine and dandy, but if someone kills the script, the java process continues on. It would be nice if I could say run this process as this name in Linux, but I know of no such thing. I asked this on LinuxQuestions.org and got a response to use Launch4J...which creates executables for Windows...so that wasn't very helpful. I was hoping the Java community might have a little more insight.

    rename the java binaryOr instead of renaming, you could do a symlink... I
    don't have a machine to test on, but I think creating
    a symlink to the java executable and running that
    symlink would change the executable's name in the
    process table.nah, the process would still be called 'java'

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Linux, java.lang.Process.getOutputStream() funniness

    Hi,
    I'm using RedHat 7.1, and Sun JDK 1.3.0_02 (on Intel).
    From my Java app, I'm trying to launch another process, and redirect my
    console in/out to the slave process's in/out.
    After launching the process (using Runtime.exec), I launch three
    background threads:
    1. Monitor the slave process's getInputStream and write all incoming
    bytes to my System.out
    2. Monitor the slave process's getErrorStream and write all incoming
    bytes to my System.out
    3. Monitor my System.in and write all incoming bytes to the slave
    process's getOutputStream
    The funniness I'm experiencing is in step 3 -- it seems that I have to
    press each keystroke TWICE, for it to register into the slave process.
    For example, as a test, I am launching "lynx http://www.cnn.com", and
    the lynx options "H" and "O" I have to press twice (H-H or O-O) to get
    the appropriate screen to pop up. In fact, the first keystroke I enter
    doesn't matter; it's as if every other keystroke is looked at.
    Here is my code for thread #3:
    // -------- Begin code fragment
    // Start an input thread
    Thread inThread = new Thread() {
       public void run() {
          OutputStream out = slaveProcess.getOutputStream();
          byte[] buffer = new byte[1024];
          int len;
          while (true) {
             try {
                len = System.in.read(buffer);
                if (len == -1) break;
                //System.out.println("Bytes read from keyboard: " + len);
                out.write(buffer, 0, len);
                out.flush();
             } catch (Exception e) {
                break;
          System.out.println("inThread exiting");
    inThread.start();
    // -------- end code fragment In reference to some older JVM bugs, I've tried inserting
    Thread.currentThread().sleep(1) at various points (in case there is a
    scheduler problem), but to no avail.
    Any help would be appreciated!
    Thank you,
    Bryan

    I would test it buy using three FileIn/OutputStreams
    instead of Syatem.in/out/err and if it worked at that
    point it would be the synchronization/blocking problem.
    Because I have used Process.getInputStream on linux on
    several occasions and never anything like you are
    talking about happened.

  • Lenovo Z50-75 : Critical Process Died

    Hi, i bought lenovo z50-75 few months ago. I'm trying to update my computer on 21/07/15 as it suggest to update and restart.But then it stuck during update and blue screen with a sad face appeared.It said that my laptop having CRITICAL PROCESS DIED error.After it collected all the data and restarted,this error keep coming to me and i have no idea what's going on.The blue screen keep coming to me just after a few minutes/seconds i restart my laptop. I tried to go into Safe Mode so that i can run a scan or anything.But this is another problem.I can't launch Safe Mode. For your information,i just bought this laptop on March (if i not mistaken).I didn't expect that i'll facing this severe issue just after few months i bought it,not even half a year!Now i can't even backup my files in my laptop due to this Blue Screen problem! Do you have any solution?Do you provide on-site repair service?   

    I can't use a restore point because my laptop keep showing blue screen.So i tried refreshing my system and it worked.Now my laptop is ok.Thank you. I  still have two questions. First of all, now i refresh my system and it restore to original system.If my laptop suggest to update should i update it or not? Second, my apps gone after i refresh the system.Some of my apps such as Art Rage and Autodesk SketchBook can only download once with license, now the apps gone, how can i redownload it?

  • Kernal Data Inpage Error, No Bootable Device, Critical Process Died AGAIN! Please help!

    I bought this S55-A5295 in July 2013. It started to have problems in April 2014. After 3 months of Critical Process Died, No Bootable Device, and having it shut down multiple times a day, I eventually convince service to take accept it because when I tried to do the recovery, the hard drive was missing partitions needed. (My $30 to ship, despite under warranty)
    I received it back late June. The factory replaced the faulty screen (a different problem), but did not replace the hard drive. They supposedly "fixed" it, and added the needed partitions, should I need to do recovery again. I know that the partition was added because when I got it back, instead of being like new out of the box and ready to use, I was locked out because it was set to administrator and there was no option to access it, so I had to use the partitioned info. and do ANOTHER reset after getting it back from them. Not great service all around.
    Now the laptop is out of warranty and I've started having problems again.
    Sept. 16 -- I had a Kernal Data Inpage Error. The laptop made a horrible sound and shut down. At the time there was a Toshiba Canvio Slim II external drive attached.
    Sept. 18 -- EFI\Microsoft\Boot\BCD 0xc00000bb the boot configuration data for your PC is missing or containing errors.
    Sept. 19 -- Kernal Data Inpage Error. At this point I had removed the external drive, in case that was the problem. It wasn't letting me remove it earlier in the week. I didn't use it much over the next week.
    Sept. 27 -- No Bootable Device.
    Sept. 30 -- Kernal Data Inpage Error (volmgrx.sys)
    Then Critical Process Died -- 3 different times
    Then it restarted itself once without an error code.
    Today, Oct. 1, I installed updates from Toshiba, including one fpr HDD and I performed maintenance. I tried to do the hard drive check, but the tabs in the instructions on the computer don't actually exist.
    The directions: go to Computer, Properties, Tools tab (can't find it) , so no Error Checking and Check.
    However, I did find, under Performance information and Tools my computer's performance rating. The Primary Hard Disk data transfer rate is 5.9.
    So far it hasn't shut down today and hopefully the updates have fixed any issues, but I want to be prepared if they don't.
    Are these errors coming from my laptop's hard drive? Is there a way for me to actually check that? Are the errors somehow connected to my TOSHIBA external drive? I haven't connected the external drive since the errors started happening, but i will need to use it again at some point, I just wanted to make sure the laptop was okay first.
    Also, I am still running Windows 8. That's what they reset it to at the factory, and last time the issues seemed to correspond to me upgrading to 8.1, so I am wary to end up with a $600 paper weight again.
    Please advise. Thanks!!

    ..went through the whole reset.   ...   ..do ANOTHER reset after getting it back from them
    What can I say? The gold-standard test for a software problem is to restore the hard disk to its original out-of-the-box contents.
    I'm a Windows specialist. Can't troubleshoot hardware.
    -Jerry

  • Windows 8.1 Blue Screen of Death "Critical process died" after Windows update

    Hey there, my Envy laptop has the "Critical Process Died" blue screen of death error after doing 3 things today:
    1. A BIOS update through HP Support Assistant.
    2. An x64 windows process update (optional) through the Control Panel.
    3. An NVIDIA update.
    What can I do to fix this error? I'm okay with a complete system wipe. Please help.
    *Windows 8.1 64bit

    The only option that worked for me was to "reset" my PC, as in a complete wipe. it's working properly again, when I read reviews of windows 8.1 I didn't really believe the people who said stay away from it, but since I've had more problems than I'd wish to, I'm too afraid to go back to it. Thanks anyways guys.

  • Debugging java.exe (running in a browser) results in the process dying

    This question applies to java.exe when ran in the context of a web browser (tested with both IE and Firefox). That is, a java.exe process started as a result of an applet being loaded.
    When I attach to the java.exe process using a debugger (such as OllyDbg or Windbg) but don't resume the process within a few seconds when I do resume it the process (java.exe) terminates. It seems like there is something checking to see whether java.exe is responsive and signalling it should terminate if not. What I'm trying to figure out is whether that is a 'feature' of the JVM/java.exe or perhaps the browser process.
    Any help is appreciated.
    Cheers.

    Please vote for the following enhancement request if you are
    interested in having the ability to run AIR apps within a browser.
    It would be very nice to be able to develop a single
    application that can run either in a browser or as a desktop
    application (and have access to the AIR API). Many users may also
    prefer not to install desktop applications.
    https://bugs.adobe.com/jira/browse/SDK-15786
    Thank you.

  • S540 critical process died

    Hy,
    I have upgraded my S540 to Windows 8.1. I installed all drivers and updates and have now sometimes bluescreens with the message "critical process died". I know this is not much information but I have no idea how to examne or solve the problem.

    Hola pasoprohibido que tal,
    Que estuviste realizando ante del mensaje?, puede ser relacionado al Windows update, en teoría el mensaje guarda relación con que algún proceso para que arranque Windows no este andando como debe.
    Pues esta medio complicado la situación si te dice que la unidad que contiene Windows esta bloqueada, puedes intentar algo con la unidad de la memoria USB que comentas puedes ingresar al CMD y escribir sfc /scannow
    Otra opción radical es una nueva instalación, digo radical porque implicaria eliminar todo lo que tengas en la unidad que contenia a Windows (unidad C del disco duro por lo general), no comentas que modelo tienes, podría asumir que tenias Windows 8 pre-instalado pero no encuentro por ahora con información oficial sobre alguna descarga de una imagen para una posible instalación de cero (instalación limpia), lo que si te podría servir es esta información, funcional si tenias un ordenador con Windows 8 pre-instalado.
    Un saludo.
    @Antony_Vamu
    Comunidad en Español  English Community  Deutsche Community  РусскоязычноеСообщество
    Mis Lenovo: Y560p,Z580,Z500 touch,S920,T400,G50-70 ,Soy voluntario no trabajo para Lenovo, las opiniones expresadas por mi no representan a Lenovo, no se responde a preguntas de manera privada debes crear un nuevo tema, números del centro de llamada Lenovo Aquí , reglas de participación del foro Aquí , si encontraste solución a tu problema marcarlo aceptándolo como solucionado!!!!!

Maybe you are looking for

  • EWT-Tax on Down Payment and Invoice

    Hello, I've activated the accumulation feature in the Withholding Tax Type for both IV as well as Payments. The tax code is the same for both tax types.I've also defined the minimum base amount for Witholding Tax code as Rs.5000 for Official Withhold

  • Migration of CUCM and CUCX

    I plan to execute an upgrade of CUCM and CUCX from version  7.1.3.30000-1  to a version  9.1.1.20000-5 (CUCM) as well  CUCX 7.0(1)SR05_Build504  to 9.0.2.10000-71(CUCX) respectively on a VMware ESXI 5.0 . I will be grateful if someone finds a little

  • Using J2EE EJB Container and Oracle 8.1.7

    I am trying to setup the J2EE EJB container to use and Oracle 8.1.7 database instead of Cloudscape. So far I have done the following 0. Created the table for the Savings Account tutorial in the Oracle Database. 1. Added the Classes12.jar (Oracle's la

  • HT1368 Wish list

    Is there a way to buy music off of my friends' wishlist (for them)? Can I look their email up or something?

  • How to add multiple plots programtic​ally to XY graph.

    Hello,      I am new to Labview.My code is reading Voltage value from no. of Power supply & storing in 1D-array of string. No. of power supply will depend upon user selection. Now I want to plot all these Voltage's value to XY graph,in which X is tim