Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JNI memory problem  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed a java application to communicate two systems. Every request is processed by a Thread, and the thread invokes the API of the other system, using JNI to do it.

The problem is that when the program is running, it increases the memory used by the process "javaw.exe", about 0.3 Mb every single request is processed. The memory usage that is displayed sometimes is smaller than the previous, but in general it tends to get bigger and bigger.

I tracked the problem to be at the JNI calls, because I forced the application to send an error message before the JNI call occurs, and in this case the memory usage didn't increase.

Please, if you can tell me something about this problem, i'd thank you a lot.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!