Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Problem: Weblogic should be restarted manually to work correctly

  Asked By: Adella    Date: Apr 12    Category: Java    Views: 1201
  

We have a web base application with these specifications:
Database: Oracle 9i
Application Server: Weblogic 8.1.0 that cracked for more than 5 users
Design: Hibernate + Struts
Our online users are about 200 and they are in various places.
Hardware: 2 * HP Server with dual CPU xenon and 4Gig Ram (one of
them is for database and the other one works as an application server)
I set the Weblogic in productivity mode and its Java heap size and
when ever that I monitor the performance of the server, every things
such as throughput, Queue Length, Memory Usage, Used Heap, Used
Physical Memory, Jvm Processor Load and .. Seems to be OK!
I made 5 connection pool and 1 multipool and made a data source on
this multipool.
But sometimes (about tow or three times a day) Weblogic doesn’t work
and should be restarted!!!
I try to use node manager and clustered the server but I couldn’t run
it and use it correctly and actually, I really don’t know, is this,
can solve my problem or not.
As a matter of the fact, I ‘am looking forward a person who can help
me as a consulter or something like this.

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Harold Graham     Answered On: Apr 12

you didn't mention when Weblogic hangs, Does send an error or not .
If it sends a "Memory out of usage " error plz send me an email then i tell you do something to fix it .
Making just one connection pool for one db is enough and there is no need to make 5 pools.
how many connections have set for ur pool?

 
Answer #2    Answered By: Giovanna Silva     Answered On: Apr 12

Nor weblogic  console nither myserver.log doesn't show
any problem!

Our "Memory out of usage" error is solved by
increasing heap size.
I test on connection, but this problem  is stil
consist.
I use hibernate  for data layer.it make connections for
users (about 200 user)

 
Answer #3    Answered By: Aaliyah Khan     Answered On: Apr 12

There is a figure in connection Tab that shows the rate of memory usage and cpu and some other usefull reports.
By the way , with this condition that there is no note from weblogic  and i have no overall vision on problem.
I can only give some global comments:
1- since u use hibernate  , there may be some problem  with hibernate session factory bcuz it is so weak and can not afford under high load.
2- ur pooling method for connections in weblogic is not well .
3- changing weblogic JVM to JRockIt may be a nice try.
4-there may be problem in oracle  with oracle query caching.here i put a question.how is repsonse speed of ur appliation?
5-I dont know about carcked version of weblogic with 5 users  license;the version that we use has no limit for users. may be this is the reason of ur prob.-i have a web  application with the same spec but with nearly 3 times more users and it works.-

 
Answer #4    Answered By: Maurice Hanson     Answered On: Apr 12

I will have to disagree with the first point since hibernate  delivers a fantabulastic performance even under load. I have also never noticed any significant performance difference with JRockit. In theory it handles memory issues a lot better, but my experiences were not very impressing. One thing that is worth looking into is to check how many http threads the web  container has. You may have to increase the number so that you can accept more concurrent users; however, this should be used after you are sure your hardware capacity is not maxed out. In addition having 5 connection pools is rather strange unless you have a good reason for it. You may also want to check if the connection pools are maxed out. A better description of how dead WLS is will also be a help in finding the problem.

 
Answer #5    Answered By: Bellona Lopez     Answered On: Apr 12

I have to explain about my experiences about this matter:
1- I do agree that the problem  may be because of number Threads.in the previous mail I forgot to mention that the number of idle threads should be checked.
2- I can prove that the Session Factory of Hibernate is so weak under high load.the mechanism of pooling of session can not perform well when the requests get high and should be used some extra jar files such as C3P0.
3- It is very simple to distinguish the difference of JDK and JRockIt performance.In equal condition ,just change JVM of Weblogic and check the Figure of memory usage in connection tab.

 
Answer #6    Answered By: Jonathan Harrison     Answered On: Apr 12

Some times WLS show this error in myserver log:
Could not execute JDBC batch update
And after that nothing work!!
My other question is why, when users  want to login (I
thing when hibernate.cfg wants to create its
connection and it's ...) it makes several Seconds!!
(About 10 Sec.). Is it naturally or not? (When I used
EJB 2.0 or DAO there wasn’t this delay!)
About MR Arghand’s comments:
So thanks for your attentions and reply,
1-How can I change my pooling method for connections?
2-i checked oracle  query caching and response speed of
my application,I don’t think that there is a problem.
3- Can we have your version of Weblogic?
4-i change WLS JVM to JRockIt, but my problem  still
exists!

 




Tagged: