Re: Speed up Java on i

Colin Williams <[email protected]>
Newsgroups gmane.comp.lang.as400.java
Message-ID <CAJOH7P1M2Ue8C=_S5AXWN7JWF+CbdYejr880An9u_e5fmZQNtg@mail.gmail.com>
If you only have one core you really aren't going to get much benefit from
5 jvms, and your going to have the overhead of 5 jvms using up memory.

You could try parallel streams to reduce the jvm overhead, but your always
going to be limited because of 1 core, so all your really saving is memory
usage and a little wait time...

How many cores on your test and prod boxes?

On Thu, 3 Dec 2020, 18:02 Logic IT: K. Fritz, <[email protected]> wrote:

> Hi Colin,
>
> Thanks for the hint.
> No, i started  5 jvm jobs.
> Here it's a dev box, only 1 core.
>
> Karl
> -----Ursprüngliche Nachricht-----
> Von: JAVA400-L [mailto:[email protected]] Im Auftrag
> von
> Colin Williams
> Gesendet: Donnerstag, 3. Dezember 2020 18:57
> An: Java Programming on and around the IBM i
> Betreff: Re: Speed up Java on i
>
> Are you only running this in 1 jvm?
>
> How many cores does your ibmi have?
>
> I would suggest using parallel streaming. Its pretty easy to do in java and
> allows you to make use of all cores.
>
> https://www.geeksforgeeks.org/what-is-java-parallel-streams/
>
> Ive never done this on ibmi but it works well on windows, so not sure what
> it would do to your overall system performance if you have other things
> running on the box...
>
> Cheers
> Colin
>
> On Mon, 23 Nov 2020, 19:39 Logic IT: K. Fritz, <[email protected]> wrote:
>
> > Hi,
> >
> >
> >
> > I've a very special case of a customer.
> >
> > Case:     Printing a QR Code with the Swiss flag in the middle.
> > (Direction!)
> >
> > Printerfiles are not able to do that, QR-Codes yes, but not with an
> > embedded
> > picture.
> >
> >
> >
> > So I've wrote a small ZXING Java program and a colleague a DataQ server
> > program to prevent multiple starts of the JVM.
> >
> > But it's still too slow! For 1000 QR Codes needs my i9 3 Min and the
> > customer talks about 2 Million documents with a QR-Code.
> >
> >
> >
> > How can I achieve much more speed to run the java prog?
> >
> > This customer wants a full IBM i solution.
> >
> >
> >
> > Who can give me a good advice.
> >
> >
> >
> > Thanks and take care.
> >
> > Karl
> >
> > --
> > This is the Java Programming on and around the IBM i (JAVA400-L) mailing
> > list
> > To post a message email: [email protected]
> > To subscribe, unsubscribe, or change list options,
> > visit: https://lists.midrange.com/mailman/listinfo/java400-l
> > or email: [email protected]
> > Before posting, please take a moment to review the archives
> > at https://archive.midrange.com/java400-l.
> >
> > Help support midrange.com by shopping at amazon.com with our affiliate
> > link: https://amazon.midrange.com
> >
> --
> This is the Java Programming on and around the IBM i (JAVA400-L) mailing
> list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/java400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/java400-l.
>
> Help support midrange.com by shopping at amazon.com with our affiliate
> link: https://amazon.midrange.com
>
> --
> This is the Java Programming on and around the IBM i (JAVA400-L) mailing
> list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/java400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/java400-l.
>
> Help support midrange.com by shopping at amazon.com with our affiliate
> link: https://amazon.midrange.com
>
-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.