File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Application running very slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Application running very slow" Watch "Application running very slow" New topic
Author

Application running very slow

RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
My server client application is running in same machine with 128 MB Ram and P3 processor. DB server also running in the same machine. It was running fine. When compiled some sources with little modifications which is not relative to the performance, it became slow.

What may be the possible reasons?

Thanks in advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Given that low memory - my first guess is the operating system is thrashing bits of memory back and forth to disk. Your slight change just went over the threshold of memory use.
Bill
RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
Thanks william

How can I overcome this?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Reduce memory consumption or give more memory to the VM, of course. For the former, you probably want to run your application through a profiler.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
Thanks Ilja

I will try with the Profiler

[ August 21, 2005: Message edited by: RameSan Rahul ]
[ August 21, 2005: Message edited by: RameSan Rahul ]
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 860
You should always first see where the app is running slow. However, if every piece of your app is running slow (as opposed to a window or 2) it is more likely a system level problem like lack of memory, slow network IO or a slow database. If only parts of your program are slow then it is more likely a code issue.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Given that we are talking about a machine with only 128mb that is also running a DB, the added memory used by a profiler could alter the results.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application running very slow
 
Similar Threads
Unable to create a Socket object
SQL Server express 2008 jdbc connection problem
Out of memory exception in tomcat
question related to local host
Performace issue