S
Sal
Hi all,
I've some problems with Windows memory and a java program.
I've developed a program that takes some data from serial port and put
it in a Mysql database.
Every 20 sec there are some new data in the serial port and the
program runs 24h.
I start the program in this way:
java -Xms32m -Xmx512m -jar application.jar
but the windows memory in the task manager after some hours is too
hight (90Mb) and after some days the program is freezed.
I've tried to call Garbace collector many times in my code:
System.gc();
System.runFinalization();
System.gc();
But it seems that doesn't work...
I have a massive use of select in the Mysql Database (20 select every
4 minutes) and after i use System.gc();...
But the memory always grows up!
thanks to all
Best Regard
Sal
I've some problems with Windows memory and a java program.
I've developed a program that takes some data from serial port and put
it in a Mysql database.
Every 20 sec there are some new data in the serial port and the
program runs 24h.
I start the program in this way:
java -Xms32m -Xmx512m -jar application.jar
but the windows memory in the task manager after some hours is too
hight (90Mb) and after some days the program is freezed.
I've tried to call Garbace collector many times in my code:
System.gc();
System.runFinalization();
System.gc();
But it seems that doesn't work...
I have a massive use of select in the Mysql Database (20 select every
4 minutes) and after i use System.gc();...
But the memory always grows up!
thanks to all
Best Regard
Sal