Srinivas Kadiyala

Greenhorn
+ Follow
since Nov 14, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Srinivas Kadiyala

HI,
I have a small application, that has two JTextArea controls. I load some files (sometimes as big as 20 mb) to one of them, do some processing and write the result to the other JTextArea control. I have set the JVM size as 64. This is fine with small files. But the problems on hand are:
1. If I load a file and start processing, the Memory Usage goes up. Even after 10 mins. of the process completion it's not coming down.
2. If I clear the JTextArea controls, then also the Memory usage is not coming down.
So, over all the Memory usage is always goes up! Afterwards if I attempt to load a file or do something else, OutOfMemoryError occurs.
If I change the JVM size to something around 256 or 512 then its OK. Bu t we cannot force this change on customer's machine as it may effect other appls. running.
I am using threads for loading of the files and the other processing. I think, I'm taking all the necessary care to close the file pointers and nullify the other objects in the methods. But still, this problem persisits.
Any info or suggestions in this regard is highly appreciated.
Thanks.
20 years ago