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



/qibm/proddata/http/public/jt400/lib/jt400Access.zip comes already
crtjvapgm'ed.  This jar has the same classes as jt400.jar minus the vaccess
(GUI) classes.  If you are on v5r1 you can also use
/qibm/proddata/os400/jt400/lib/jt400Native.jar.

David Wall
AS/400 Toolbox for Java




                    "Clapham, Paul"
                    <pclapham@core-mar       To:     java400-l@midrange.com
                    k.com>                   cc:     AAnuszewski@hammer.net
                    Sent by:                 Subject:     RE: sluggish java 
program
                    java400-l-admin@mi
                    drange.com


                    11/21/01 12:27 PM
                    Please respond to
                    java400-l





I have done some experimenting with this issue.  What I did was this:

CRTJVAPGM CLSF('/qibm/proddata/http/public/jt400/lib/jt400.jar')
OPTIMIZE(30)

after first doing DLTJVAPGM to remove whatever was there before (it had
optimization level *Interpret).  Now when I start the server, the first
transaction only takes about 10 seconds, compared to the 30 seconds and up
that it used to take.  And I know there's some class-loading, file-opening,
and query-creating going on there.

(I should mention that when I first ran the CRTJVAPGM command, I had to
cancel it after a crowd of villagers with flaming torches showed up at my
door.  I reran it at night, where it took 2 1/2 hours to run at 95% of the
CPU.  So schedule with care...)

PC2

-----Original Message-----
From: AAnuszewski@hammer.net [mailto:AAnuszewski@hammer.net]
Sent: November 15, 2001 05:35
To: java400-l@midrange.com
Subject: sluggish java program





We have recently deployed a small TCP/IP server written in java.  We used
crtjvapgm and set optimization to 30.  The java is then called from a CL
startup
script.  We have noticed that the first transaction that comes through the
server is extremely sluggish.  Everything after the first one processes
fine.
In addition, it seems to take forever for the program to start up and
initialize
each day.

Is there something I am missing about ensuring the program runs well on a
AS/400?  Is there anything I can do to improve performance?

Amy Anuszewski
Weidenhammer Systems Corporation
935 Berkshire Blvd.
Wyomissing, PA 19610
Phone: (610) 378-1149 extension 8291
Fax: (610) 378-9409
Email: aanuszewski@hammer.net
_______________________________________________
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.







As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.