Solved

Slow performance of OC4J application.

Posted on 2003-11-03
4
1,072 Views
Last Modified: 2013-12-01
We have an application where the server runs on a system with the following configuration:

SunOS redwood 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-EnterpriseSystem = SunOS
Node = redwood
Release = 5.8
KernelID = Generic_108528-14
Machine = sun4u
OEM# = 0
Origin# = 1
NumCPU = 12

The version of Java on that system is:
java version "1.3.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_03-b03)
Java HotSpot(TM) Client VM (build 1.3.1_03-b03, mixed mode)

We have the OC4J (version 9.0.2.0.0) and Oracle database installed on this system.

The Java client application runs on Windows 2000.

We are facing the problem that the application runs very slowly. There are instances when the UI greys out for sometime and after a few minutes comes out with the result. Our application runs several queries to the database and this is usually done by calling appropriate interfaces in EJB components (Stateless Session beans) deployed on the server.
Any idea why the performance is very slow and how this can be improved?

Thanks.
0
Comment
Question by:chowdry
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
vzilka earned 250 total points
ID: 9676537
Can you pin point the performance problem location?
Try the following - if you have a profiling tool (style JProbe) then use it on the server.
Otherwise - try using DMS - http://machine_name:8888/dmsoc4j/Spy
It will give you the time it takes for each EJB to run.
If the problem is on the server, then try to see if it is a database related issue (and then you can tune the database) or an OC4J issue. Try putting debug statements before your DB calls, and see how long they take. DMS in OC4J 9.0.2 was not powerful enough to monitor DB operations.

Once you pin point the problem location, we can see what has to be done.
Usually tuning the app server gives only about 5-15% performance boost. The problem might be in the application code, or the database configuration, or the client code. These are the most likely candidates.
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9893806
chowdry, was the issue solved?
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Working knowledge on Innopac Library System 2 183
FileMaker 13 Port 80 Problem on server 2012 12 194
how to find the dependencies of an EAR or WAR 4 72
Multi-threading in Tomcat 4 156
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question