954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java and Oracle

I have an application web based. using Oracle backend and Java front end.

App server is in weblogic and Solaris os and two cpu with 8 applications.

DB server is oracle 8.1.7 on Solaris

This application is getting slow when number of threads are more ( like many users login and related activities) . I found out that during the peak time the garbage collector is also not running properly.

I want to know how can we change the GC algorithm ( like concurrent GC / parallel GC etc )

Where do we give the settings of JVM ?

How to enable the parallel GC ?
How to set the heap size ?

shaji
Newbie Poster
13 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

Here's an excellent article on tuning the GC:

http://java.sun.com/docs/hotspot/gc1.4.2/

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

hi friend ,
thank you .but i expect a specific reply for my post
thank you
Here's an excellent article on tuning the GC:

http://java.sun.com/docs/hotspot/gc1.4.2/

shaji
Newbie Poster
13 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

Sounds like you're not properly releasing database connections and your application is getting starved of them.

ALWAYS make sure you release any connection to your database in the same method you make it.
And you should best also use a connection pool for increased performance, usually appservers these days provide you with one.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

hi friends,

any new suggestion? please
regards
shaji

shaji
Newbie Poster
13 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

hi friends,

any new suggestion? please regards shaji

Hi Guy,

For the JVM Tuning a simple google search produced the following nice result... http://e-docs.bea.com/wls/docs81/perform/JVMTuning.html

Also, both ServerCrash and jwenting offered you nice possible solutions. What you're dealing with is very difficult to diagnose, work on without a lot of information. jwenting pointed out the most likely issue and ServerCrash pointed you to a document that explains how to change the algorithm for GC. You're going to have to take these resources yourself and figure out your own solution. Hopefully it is an easy issue of not closing your jdbc sessions. If it isn't, you're going to have to do a lot of your own detective work on your system. We most likely will not be able to help you.

Best of Luck,

Regards,

Nate

hooknc
Posting Whiz in Training
219 posts since Aug 2005
Reputation Points: 11
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You