Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The main method to start the java application. The main method initializes the log, and then determines whether the process is running.

Every 10 minutes, scheduled to run through the linux crontab. Able to determine that the 10 minutes of this program must end.

Under normal circumstances, it prints the following log

The beginning of the implementation of 10 minutes
The end of the 10 minutes of normal

The beginning of the implementation of 20 minutes
The end of the 20 minutes of normal

The beginning of the implementation of 30 minutes
The end of the 30 minutes of normal
.....

But now this situation:

The beginning of the implementation of 10 minutes
The end of the 10 minutes of normal

Execution starts in 30 minutes, but detected already have a process in operation, the program exits.
Start the execution of 40 points, but detected already have a process in operation, the program exits.
.....

Very strange 20-minute log does not print, but the 20-minute program has been launched by the ps-ef | grep java view java thread, found in a 20-minute thread is locked. But why not see the log Check the linux dispatch log, not see scheduling a 20-minute log.

share|improve this question
1  
The last paragraph of your question is not understandable. Please clarify. Also, explain how you are checking for a running process. – January Oct 9 '12 at 8:09

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.