Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Slow performance of OC4J application.

Posted on 2003-11-03
4
Medium Priority
?
1,096 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
vzilka earned 1000 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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

-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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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