Menu

#54 JamVM 1.5.4 on Arm 9 Linux 2.6 memory leak

open
nobody
None
5
2011-07-15
2011-07-15
Paolo
No

I have a Java application that use 4 threads and JNI for dinamyci lib .so and I run it on JamVM 1.5.4 on Arm 9 Linux 2.6. The application works fine but iworks for at least two days then the linux kernel stops it because the application has consumed all the system memory available!
I tried many things:
- changing the -Xxxx parameters of JamVm
- not using JNI
- not using the hash table and use instead an arraylist
- calling GC directly

Nothing solve the problem! the application gradually use all the memory available. it seem tha the GC of JamVm is not works fine!!!
Does anybody has some suggestion for it?
Someelse has experience in this ?
thank you very much

Paolo

Discussion

  • dpekin

    dpekin - 2011-11-01

    We're seeing exactly the same scenario on jamvm 1.5.4, Linux 2.6 on the ARM9 (9g20) as well. I moved a working java app to 1.5.4 JVM and it leaks memory for a few days prior to crashing. The application is not leaking the memory as it works fine on the original platform and internal memory diagnostics show no leak. I tried the -Xnnn params and calling GC directly as well to no avail.

    Maybe a GC or library bug that apparently is ARM9 specific???

    - Dave

     
  • Martino

    Martino - 2013-03-26

    Having the same problem on an ARM9 single board computer. It has a JamVM 1.5.1 installed, so the issue goes back a few version apparently.
    I've been performing some test and in our application the memory leak happens when writing float values to a stream (i.e. a file).
    Hope this may help someone to fix it!

     

Log in to post a comment.