× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



thanks David,

I'm speaking mainly of my apps.  As you know I wrote a
utility on the As/400 that lets you grab a URI.  I also made
a Java version of the app recently.

I use this as the base for a simple load testing scenario.
I submit the command multiple times to the same URL to see
how a server will handle it, storing the elapsed time from
connection until the data is retrieved.

So, for the same app in Java I made a wrapper that extends
Thread.  I then loop x times creating a new thread for each
"hit" that I want.  Then store the times from that.

Testing with only about 10 hits I haven't seen much of a
difference.  Even running threads on the AS/400 vs. my PC
don't seem to make much difference.

The startup of the job itself in this case should not affect
the elapsed time that I am storing.  I was just wondering
which would be better.  To me, it seems they are fairly
equal.  Multiple jobs, as you specified, would demand more
resources on the system during startup, though.

Brad

On Mon, 25 Feb 2002 11:54:05 -0700
 "David Morris" <David.Morris@plumcreek.com> wrote:
> Brad,
>
> The biggest difference between the two would be the extra
> overhead of a job vs a thread. You can reduce that
> overhead
> some with prestart jobs. The biggest concern with
> multi-thread
> jobs is that a lot of legacy (including system) code does
> not
> behave well in a multi-threaded environment.
>
> David Morris
>
> >>> brad@bvstools.com 02/25/02 10:42AM >>>
> Just thinking outload here.
>
> Let's assume I have an appliation that I want to run many
> times simultaniously.  Assuming I'm running the aplicate
> on
> the 400, what would be "better".
>
> 1 - Running the application in multiple jobs (ie
> submitting
> the job x times into QSYSNOMAX or something similar)
>
> 2 - Running many instances of the apllication using Java
> threads?
>
> I'm guessing it really won't make much of a difference
> unless job resource allocation comes into play.
>
> Bradley V. Stone
> BVS.Tools
> www.bvstools.com
>
> _______________________________________________
> This is the Java Programming on and around the iSeries /
> AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
>

Bradley V. Stone
BVS.Tools
www.bvstools.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.