[Performance Tuning] - Performance JBoss 4.2.3 compared to JBoss 4.0.2
by erwinp
Hello,
i finally upgraded from JBoss 4.0.2 to JBoss 4.2.3. Unfortunately i noticed that the performance of my application decreased significantly. When i test my application on the same hardware, same VM, ... it can create about 850 database rows per second when using JBoss 4.0.2 and only about 400 per second when using JBoss 4.2.3.
The application contains a servlet that takes requests (to create data) in the database and stores these requests (over a stateless session EJB) on a JBoss Messaging Queue. The requests will be read from that queue by a message driven bean which will create the data in the database. Under JBoss 4.0.2 the application creates about twice as much rows per second compared to JBoss 4.2.3. The application uses Hibernate, no EJB 3. The CPU usage and memory usage of the java (jboss) and mysqld processes is much higher for a similar load under JBoss 4.2.3.
Does anybody have any idea why this is happening?
I'm using Dell PowerEdge R610 servers with Fedora Core 11 (64 bit), Sun's JRE 1.6.0_16 and a MySQL Cluster database (5.1.37 - 7.0.8a). Under JBoss 4.0.2 i'm using JBoss Messaging 1.2.0 and under JBoss 4.2.3 i'm using JBoss Messaging 1.4.5.
I would give JBoss 5.1 a try but i'm stuck with the problem described in this post: https://forum.hibernate.org/viewtopic.php?f=1&t=999881&view=next.
With kind regards,
Erwin
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268777#4268777
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268777
14 years, 7 months
[Security] - Re: ClientLoginModule in a multi-threaded swing client
by marek.gregor
I found the same bug in JBoss 5.1.0GA (bundled with jbosssx-client.jar, version 2.0.3.SP1):
Security context is lost in client (multi-threaded swing) application started via java web start, when I perform ejb3 call on different thread, from which I have performed login() on start of the application (login() was perfomed on thread created by java webstart for calling main() method, this thread has been destroyed after finish of main method). Although I have configured:
org.jboss.security.ClientLoginModule required
multi-threaded=false;
Security context is still stored in thread-related storage, what is wrong. After 2 days of remote debugging internals jboss client security library I found problem in static variable SERVER of class org.jboss.security.SecurityContextAssociation, which has declaration:
private static boolean SERVER = true; This value is not changed during the run of client application therefore security context is stored in thread local place. Simple workaround which works is to call method SecurityContextAssociation.setClient() before login() method.
This bug occured in JBoss 5.1.0GA (jbosssx 2.0.3.SP1) there are already bugfixes which could possibly fix it in newer version of security library, e.g.: https://jira.jboss.org/jira/browse/SECURITY-415, I do not know, it is up on the JBoss people to resolve if it is still valid issue to solve.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268774#4268774
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268774
14 years, 7 months
[Performance Tuning] - Re: jboss Web-Console Memory
by rasa
"PeterJ" wrote :
|
| What do you mean? I gave you a few suggestions for things you could try, and you indicated that none of those were possible. You mentioned a prior discussion but gave no link to that discussion. (No, I will not search for that discussion - it is your responsibility to provide clear information so that we can help you solve your problem.) So if you cannot do the things that would help you, what would you have me do?
|
|
Sorry Peter i extreamly sorry for the trouble, and also i apologize for the late reply.
"PeterJ" wrote :
|
| Either use a memory profiler (jmap, VisualVM, Eclipse MAT), or run one app at a time. Hmm, you have AS 3.2.5, which JDK? Most of the tools I am familiar with need JDK 5 or 6. And what OS?
My jdk is 5 and os is linux. If i am using one of the profiler is it required to increase anthing in my server level
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268757#4268757
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268757
14 years, 7 months