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

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

-----Original Message-----
From: JAVA400-L [mailto:java400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of
David Gibbs via JAVA400-L
Sent: Wednesday, January 19, 2022 2:10 PM
To: java400-l@xxxxxxxxxxxxxxxxxx
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,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
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
link: https://amazon.midrange.com

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