Computing.Net > Forums > Unix > Background Java Processes

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Background Java Processes

Reply to Message Icon

Name: Jaggi
Date: April 16, 2001 at 21:52:05 Pacific
Comment:

Hi,
I am using HP-UX 11, I tried to run 20 instances of a java program which
takes one command line argument (Integer , which is the Order No in
our Database Oracle 8.1.6 ). In short,this java program takes a
database connection and updates the corresponding order record.
To run the 20 instances, I use a shell script execute_java, the
content of the same given under

$ cat execute_java
nohup java OfflineReportFormatter 737 &
nohup java OfflineReportFormatter 738 &
nohup java OfflineReportFormatter 739 &
nohup java OfflineReportFormatter 740 &
nohup java OfflineReportFormatter 741 &
nohup java OfflineReportFormatter 742 &
nohup java OfflineReportFormatter 743 &
nohup java OfflineReportFormatter 744 &
nohup java OfflineReportFormatter 745 &
nohup java OfflineReportFormatter 746 &
nohup java OfflineReportFormatter 747 &
nohup java OfflineReportFormatter 748 &
nohup java OfflineReportFormatter 749 &
nohup java OfflineReportFormatter 750 &
nohup java OfflineReportFormatter 751 &
nohup java OfflineReportFormatter 752 &
nohup java OfflineReportFormatter 753 &
nohup java OfflineReportFormatter 754 &
nohup java OfflineReportFormatter 755 &
nohup java OfflineReportFormatter 756 &

$

The java program OfflineReportFormatter contains a
System.out.println in the beginning of the program
to sho which Order number it is currently processing.

what happens is, when I run this shell (execute_java)
some of them missing out in random fashion.
If I try only with 12 or 13 processes all of them are getting picked up, once i try to run 14 or 20 as shown above it bombs.
Please suggest a solution.


Thanks
Jaggi



Sponsored Link
Ads by Google

Response Number 1
Name: Guest
Date: April 1, 2002 at 05:50:08 Pacific
Reply:

Probably the maximum number of user threads is exceed, that's why some of those fails. It could also be some other resource like memory, file descriptors etc..


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Background Java Processes

java process killed automatically www.computing.net/answers/unix/java-process-killed-automatically/7270.html

Contention prob. www.computing.net/answers/unix/contention-prob/5009.html

Run proc. as root from nonroot proc www.computing.net/answers/unix/run-proc-as-root-from-nonroot-proc/5524.html