The java is being invoke with a CL program that uses STRQSH CMD(&CMD)
where &CMD contains all the values for executing java with the classpath,
and other variables needed by the java program.
The CL program is called quite a few times but it is near the end of process
for encrypting file in the IFS.
I will run a test where I call the Encryption program multiple times in the
CL program without ending the CL program to see if the executions after the
first one is much faster.
Thanks for your recommendation David
From: JAVA400-L [mailto:java400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of
David Gibbs via JAVA400-L
Sent: Wednesday, January 19, 2022 2:10 PM
Cc: David Gibbs
Subject: Re: Java performance qshell javac
On 1/19/22 12:51 PM, John Allen wrote:
I have a java program (class file) that performs AES 256 encryption
On one partition running 7.3 it runs in 15 seconds (wish it was
On partition 2 running 7.3 it runs in 80 seconds (not acceptable)
Any suggestions on what I can change that might make a difference?
How are you invoking the java? Are you loading a new instance every time?
My personal recommendation is to create a java server that's launched on
system start up. The server code listens on a data queue. Native code would
then send a message to the server via the data queue and get it's response
That way you incur the java startup penalty once.
I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness. You can
make a tax-deductible donation to my ride by visiting
You can see where my donations come from by visiting my interactive donation
map ... https://mideml.diabetessucks.net/map
(it's a geeky thing).
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list To post a message email: JAVA400-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
Help support midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.