Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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..

![]() |
![]() |
![]() |

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