Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why some webapplications are slow?

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Here i've deployed 2 web applications in tomcat4.0
one run's very fastly the other run's slowley and moreover the fat running application is larger than slow application.and these 2 application runs on same server.

Is there any way to allocate the transfer speed(Bandwidth) for an individual application?

or otherwise is there any mistake in my programming style.

please provide me exact solution for this problem.

should i follow any rules for developing hig performance application?

please help me


thanx in advance


cinux
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please provide me exact solution for this problem.


There is no exact solution to these types of issues. Your best bet is to employ a profiling tool to determine where the actual bottlenecks are. Otherwise, you are just guessing.

If you need to guess, the database is a good place to start.
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok atleast tell me from where i can get the best profiling tool or DB...


cinux
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem I would start with putting in some timing of individual steps. The JAmon API is good for this sort of thing. The toolkit is a free download and it seems to be well supported.
Bill
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx williams for providing me this tool



cinux
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello wiliam,I have deployed the tool into tomcat,and ran that application but how can i trace(monitor) my webapplications ???
If u dont mind please can u explain me...


thanx very much for ur help.



cinux
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The page I sent you to contains detailed examples of inserting statements into your servlet code in order to monitor the time spent in various functions. Look at the section titled: "5.b Monitoring a Servlet - Gathering page statistics"
Bill
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by saikrishna cinux:
--------------------

A = HARDWORK B = LUCK/FAITH
If C=(A+B) C=SUCCESSFUL IN LIFE
then C=FAILURE IN LIFE


A bit modification in your signatures. Although, its yours. You have the full rights on it.

--
A = HARDWORK B = LUCK/FAITH
If C=(A+B) then C=SUCCESSFUL IN LIFE
else C=FAILURE IN LIFE
--
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Yes, i've used ur monitoring tool, but how can i get the details of specific code like tracing the time for connecting to the DB. and retriving the data from the server. o inserting fields ito the database.?

thanx in advance

cinux
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr ansari thanx for ur suggestion. Yes in hurry i did it wrong..
any way i was wrong


thanx

cinux
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, i've used ur monitoring tool, but how can i get the details of specific code like tracing the time for connecting to the DB. and retriving the data from the server. o inserting fields ito the database.?

I am not clear on where your problem is - the JAmon code lets you collect data on the time spent in any line, set of lines, or method that you can place the appropriate code in. What more do you want?
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi williams , now i got it what u said in the earlier post,
so i need to write the code where ever i need to monitor.
I think this tool provides only monitoring the webapplication but i need a tool which can warn the user if a bottleneck occurs at certain part of code



thanking u



cinux
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic