HiI run jpos in weblogic as service.I have a banking project , when I send many request to jpos , cpu usage in linux server increase.also I have another project with jpos (simulator Iso8583)when I send many request to jpos , cpu usage in linux server increase.
and cpu usage became 100 percent .I dont have any crud database .
Why is CPU consumption increasing?
Because load is increasing - as you indicated?
What are you doing with the requests?
Is each unique?
How many sockets to the target?
How many threads on the target?
You need to ask a smart question : http://www.catb.org/~esr/faqs/smart-questions.html#intro
This appears to be a test setup; so reduce the cpu need on the target setup.
--
Mark
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a207464b-2e35-4640-b999-baaf3124646bn%40googlegroups.com.
I increased the number of sessions in transaction manager and improved system performanceThank u so much Mr Chhil
Good to know you sorted the mis-configuration.
Can I check (for others that follow) quite how you also reduced the cpu usage - which was reported at 100% just by increasing the number of configured sessions?
Or was the "cpu usage in linux server increase. and cpu usage became 100 percent ." a mis-conception?
--
Mark
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/3F1aW5AF1EY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/69fcec53-6b97-075a-cf35-7349157c3921%40protonmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/18cb6f44-e29c-412a-b74d-99be93e79382n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/18cb6f44-e29c-412a-b74d-99be93e79382n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/4hIPDtG1RC0adASs84QwA3fMM2rT6VbmRP8HPylNslbWaKLm-NPWLxw70isqlFsj65A8SSnNDu8dVVVZE6CVZw3QLAhkZPYT5bA9nRGgkqY%3D%40pm.me.
Have you tried the QueryHost
participant that is part of jPOS?
It uses muxes in an async fashion, so that the TransactionManager
thread can be reused while we wait for the response from the
mux.
--
Barzilai Spinak - jPOS Evangelist | Transactility,
Inc. | Montevideo, Uruguay | e:
bar...@transactility.com
Can I check (for others that follow) quite how you also reducedthe cpu usage - which was reported at 100% just by increasing thenumber of configured sessions?
Hi Mr. Barspi
I didn't use from QueryHost . I read document. How can I use asynchronous mode? Do you have sample code?
Thank you kindly
For aync mux
https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/q2/iso/QMUX.java#L180-L201
The mux.request method signature is different.
public void request (ISOMsg m, long timeout, ISOResponseListener rl, Object handBack)
You implement a ISOResponseListener and pass it in. The handback object could be anything that you need to rely on to process the response when it's received. It could be an ISOMsg or a Context or whatever.
Your ISOResponseListener .responseReceived is invoked when a response is received. Your participant is not waiting for a response, it moves on to the next participant.
https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/q2/iso/QMUX.java#L537
You can see how the jpos queryhost (talking to an external entity) implements it here. The context is paused, meaning it will let the txn mgr free this session and allow another transaction to get processed (no blocking of sessions). When a response is received, the context is resumed and txn mgr participants processing flow resumes for. that transaction
https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/transaction/participant/QueryHost.java#L79
You can read a brief description of transaction continuations (pause/resume) here
https://jpos.org/blog/2007/04/transactionmanager-continuations/
-chhil