Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (867)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Memory profiling with java and native libraries  (Read 2749 times)
0 Members and 1 Guest are viewing this topic.
Offline boxsmith
« Posted 2018-10-20 16:46:05 »

I have a Java application that uses LWJGL and a couple of my own native libraries. I've been able to do some memory profiling with Java Mission Control, CodeXL (for OpenGL) and LWJGL's memReport(), but this doesn't give me the complete picture, and there's about 100 MiB for which I can't account. I'd like a clear idea of what's going on outside of the Java heap.

How do you guys profile your games' memory usage? What tools have you found to work well (particularly on Windows)?
Offline cygnus
« Reply #1 - Posted 2018-10-20 18:10:42 »

JVisualVM is free and works well!
Offline boxsmith
« Reply #2 - Posted 2018-10-20 19:04:22 »

JVisualVM is free and works well!

VisualVM is nice, though in my experience inferior to jmc. The flight recorder seems to give much better information with a fraction of the overhead of VisualVM. (But anyway, neither will tell you about what's going on outside the Java heap, afaik.)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2018-10-21 17:33:00 »

(But anyway, neither will tell you about what's going on outside the Java heap, afaik.)
There's a plugin for JVisualVM to examine the native heap but I don't remember where it is :s

You can use -XX:NativeMemoryTracking with Java 1.8 too.

Julien Gouesse | Personal blog | Website | Jogamp
Offline cylab

JGO Kernel

Medals: 195

« Reply #4 - Posted 2018-10-23 09:42:30 »

In my dayjob I used jemalloc in the past:

Mathias - I Know What [you] Did Last Summer!
Offline Zemlaynin
« Reply #5 - Posted 2018-10-26 05:55:08 »

I use RenderDoc to track GPU performance.
Pages: [1]
  ignore  |  Print  

Riven (439 views)
2019-09-04 15:33:17

hadezbladez (5297 views)
2018-11-16 13:46:03

hadezbladez (2213 views)
2018-11-16 13:41:33

hadezbladez (5565 views)
2018-11-16 13:35:35

hadezbladez (1156 views)
2018-11-16 13:32:03

EgonOlsen (4592 views)
2018-06-10 19:43:48

EgonOlsen (5467 views)
2018-06-10 19:43:44

EgonOlsen (3128 views)
2018-06-10 19:43:20

DesertCoockie (4023 views)
2018-05-13 18:23:11

nelsongames (4741 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!