Skip to main content

Slowness in my java appllication?

3 replies [Last post]
milani
Offline
Joined: 2008-04-21

hi, I’m new to java, so please excuse my little knowledge in this field...
I’ve a situation that I need help from you guys
.
We’re running a java servlet on Apache Tomcat 4.1.18. We’ve like 60-100 clients accessing it through 15 (200k) Virtual Private Network connections; sometimes this 200k line has only one user occupying it, sometimes more than 8 users. The system provides some banking related services including querying the DB, uploading, downloading files and inserting some data….etc
When we launched the system couple of months ago the VRAM was 64MB, we’ve expand it to 512MB couple of weeks ago because we were facing a major slowness in the performance of the system, this improved the performance a bit, but still there is a slowness that you can’t ignore anyway.
Now regarding the client’s PCs, most of them are 3.0 GHz, 1.0GB RAM. And running J2SE 1.4 or 1.6.

My question is:
Is there anyway you I can do to get rid of this bothering slowness? Is it the system design? The connection bandwidth? The client’s PC specs? The VRAM? Anything else?

I appreciate your response, and thanks in advance.

**note: I’m sorry I know that my English sucks, but I’m doing my best…

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
linuxhippy
Offline
Joined: 2004-01-07

What do you mean with VRAM, most likely not adjustable video-memory on onboard GPUs ;)

- Are you experiencing high CPU load?
- Run the JVM with GC logs turned on.
- How much traffic do you send arround - how should we know wether your lines are too thin? Sorry but this question is some kind of ... well ... not well thought.
- How is your database-server loaded?

With so few detailes you gave, its hardly possible to advice anything.
You have to indentify the bottleneck before you ask for help.

lg Clemens

milani
Offline
Joined: 2008-04-21

hi again,
sorry i said already that my java knowledge is very little...

what i meant by VRAM is actually JVM...(silly of me)

- I dont think that we have to worry about the CPUs, we're running on 64 CPUs (IBM 64-bit POWER5).
- Frankly saying; i dont know how to do that, maybe you can help me through.
- We are using leased lines and the traffic isn't much. unfortunately i dont know a certian number.
- sorry i didnt get the third question. could you please elaborate more?

thanks anyway

linuxhippy
Offline
Joined: 2004-01-07

When you experience the slowness, how loaded is your machine (use top to see how much load is generated by the java process)?
It could also be some locking issue in java-code, where many clients would like to execute some piece of code guarded by a lock - so that only one after one can do it.

The third question was about other systems involved which could eventuelly cause the slowness, in this case the Database-Server.
If the java-process has to wait all the time on the Database-Server its of course slow.