[Jamvm-general] memory leak
Brought to you by:
rlougher
From: <mlp...@gm...> - 2013-11-20 13:57:05
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> </div> <div class="signature"> <div>Hello list,</div> <div>I have the following Java Code which in my opinion causes a memory leak in jamvm.<br/> It could be programmed better, but in my case I want to run the eclipse equinox OSGi<br/> framework and sometimes the kernel kills jamvm because there is no memory left. I<br/> reduced the code until this sample remains:<br/> public class HelloWorld {<br/> public static void main(String[] args) {<br/> while(true) {<br/> Float f1,f2;<br/> Float fRes;<br/> String sRes;<br/> f1 = 23.4f;<br/> f2 = 2.5f;<br/> fRes = f1 * f2;<br/> sRes = Float.toString(fRes);<br/> }<br/> }<br/> }</div> <div>Running this code with a diffrent JRE or even with the ubuntu jamvm works fine.<br/> Only with my compiled jamvm version 1.6.0 and classpath 0.99 the memory usage is very high and the kernel keeps killing the jamvm process.<br/> Any suggestions what could be done?</div> <div> </div> <div>Best regards Michael</div> </div></div></body></html> |