I have a web site which provides photos like Instagram. I use
jsp and Sun One 6.1 web server. I detected a situation that when the system is used for couple of minutes, it suddenly waits, not responses, the browser stays as loading for couple of seconds, and then continues to work with acceptable speed.
I tested the jsp code and measured the load time using currentTimeMilis method, but I think my
java codes are not the reason of this situation. It can get the image IDs about 10-15msecs and there is not any extra codes.
I use the following JVM options : -Xss96k -Xmx892m -XX:ReservedCodeCacheSize=256m
Is it possible that the problem is the disk read speed of the server ? I have 50 folders which include almost 2000 images for each and the web instance gets the images from there.
Here is the FireBug data of the case that I mention :
Sometimes it happens to JPG loading too.
What should I do to have the best performance?