wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Performance tune up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Performance tune up" Watch "Performance tune up" New topic
Author

Performance tune up

Viswa Sethu
Ranch Hand

Joined: Nov 01, 2007
Posts: 31
In our application randomly following errors are thrown while loading a page:
Error 500
Error 404

These are not appearing always, so not able to simulate the pattern of its occurence.It looks like performance issue, as in the log am able to see broken pipe exception, exception while writing to the client.
There are regular occurence of this error in the log , in the front end the users are able to see only a blank screen.The concurrent users are upto 35 users.App server is Weblogic 7.0 and db is oracle 9i.THe number of max connection set is 40.

Can you please suggest what would be the best way to handle such performance related issues.What all teh areas shld be checked to bring back the system under normal performance.Please suggest some ways to improve the performance.


Thanks
Ram Prasad
Greenhorn

Joined: Feb 02, 2008
Posts: 9
hi

These are the following things you need to check up in you server for any performance enhancements

1) no of threads configured - keep it to the default and try some combinations
2) JVM Memeory Arguments - put it to maximum possible
3) Connection Pool size - it depends on you application usage

these parameters will do.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8915
    
    8

The easiest thing to do is buy better hardware. I've seen clients with "slow" server applications that were running on a "server" that was a retired desktop computer shoved in a closet (retired, of course, because it was too slow for desktop apps!). Profile your CPU, memory and disk usage. If the any of those factors are maxed out, you have a hardware problem and the only reasonable solution is to buy.
Do you have your database and application server on the same machine? That's a no-no. For most operations, databases will be memory-bound (they have to load tables into memory to operate on them). This will suck valuable resources from your app server.
After you've covered those bases, it's time to address the performance of your application with The Enterprise Performance FAQ


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Originally posted by Viswa Sethu:
In our application randomly following errors are thrown while loading a page:
Error 500
Error 404

The concurrent users are upto 35 users.App server is Weblogic 7.0 and db is oracle 9i.THe number of max connection set is 40.

What all teh areas shld be checked to bring back the system under normal performance.


Thanks


Wich O.S? Sometimes you have to tune O.S as well, look for it on e-docs for wl 7.
Also you can set a different channel for admin configurations(as far as i remember wl 7 had this feature already).
Tune JVM, analyse GC and set some areas.
Take a thread dump while taking errors and analise what threads are doing, if most of them are stucked at some app point or waiting for external resources, etc.. and tune if you find something.
May also consider usin JRockit!

I woul'd start this way!

Also take a look at dev2dev and arq2arq BEA sites where you'll find plenty information on performance tunning!
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Enable native threads may also help! If it's not already done!!!
 
GeeCON Prague 2014
 
subject: Performance tune up