Results 1 to 2 of 2
  1. #1
    Boomn4x4 is offline Member
    Join Date
    Nov 2011
    Posts
    18
    Rep Power
    0

    Default Java Application After Power Failure

    I have a java application that is being run as a Linux daemon process. It gets started on boot via an init script, and gets shutdown with the same script at shutdown. All works fine.... During unit testing, I ran it against a power failure condition, specifically, pulling the plug from the box.

    When the system boots up, I can see that the program is "running" and it has an attached PID, but if I probe the jvm for that PID using jconsole, none of my java classes are loaded nor are any of my threads running. From all I can tell, there is just a "ghost" program running. In order to clear it, I have to kill the PID and restart.

    Any idea what is going on? Any idea as to how to resolve so that the application successfully starts after a power failure?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Java Application After Power Failure

    Have you got any logs for your process?
    If not then I suggest trying to set some up, especially on the start up side, so you can at least see if it is doing anything.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. What is the power of Pure Java?
    By Ziya in forum New To Java
    Replies: 11
    Last Post: 01-05-2015, 10:31 AM
  2. Replies: 23
    Last Post: 11-20-2011, 10:07 PM
  3. Power in java
    By someone in forum New To Java
    Replies: 14
    Last Post: 04-20-2011, 09:29 AM
  4. Is it possible to prioritise CPU power in java?
    By 2potatocakes in forum New To Java
    Replies: 6
    Last Post: 10-14-2008, 06:38 PM
  5. Power of Java
    By jeffranc in forum JDBC
    Replies: 5
    Last Post: 09-05-2008, 08:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •