• Post Reply Bookmark Topic Watch Topic
  • New Topic

calculating resources used by application  RSS feed

 
malla kiran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can anyone help by telling how to calculate the resources used by a user. We have an intranet portal which is web enabled. we are using jsp,java beans and postgres as database.
whenever a user logs into the system some resources are allocated for him in the sense that session object gets created as well as other resources are allocated for the user..
I want to know how much resources like ram,cpu usage is used by one user..so that proper resources can be allocated for the application.... currently i have asked for more resources but my big bosses need proper justification for resources asked by me!!!
Regards,
kiran
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
difficult to say without seeing the architecture of you application, you could do some memory profiling of you application objects and estimate what the cost is going to be.
http://www.javaworld.com/javaworld/javaqa/2001-12/03-qa-1228-memory.html
I think because you are asking for processing as well as memory cost, it would be better to just profile the entire application. Use a system profiler to check how much of the system is in use at any one time and if you can show that over a 24hr/7day time the processor is overloaded X number of times, or that peak usage is at this and that amount, etc. I am not entirely sure that per user memory allocation will help a great deal since the application must have overhead, bosses tend to do numbers like this:
per user 2k (for example)
computer has 256M, therefore I can fit 128 users.
But that doesnt account for the app server footprint, what happens when the admin logs in and start working on the machine, what is the OS footprint, how many dropped connections are there, etc etc.
have a look at JProbe (which I like) and OptimizeIt (which I havent see) both of which I believe have trial downloads. They are very specific to the JVM so will probably be quite useful to you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!