View Single Post
  #9   Spotlight this post!  
Unread 19-02-2015, 11:48
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 111
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: Profiling a Robot

Quote:
Originally Posted by fovea1959 View Post
can you run visualvm on your driver's station and look at the JVM on the roboRIO? It has some pretty good tools for dealing with memory issues.

It's been a while since I've used it over the net, I don't remember if you need to do anything special when starting the JVM to be profiled.
If you do a java debug run it will run this command
Code:
env LD_PRELOAD=/lib/libstdc++.so.6.0.20 /usr/local/frc/bin/netconsole-host /usr/local/frc/JRE/bin/java -XX:+UsePerfData -agentlib:jdwp=transport=dt_socket,address=8348,server=y,suspend=y -jar /home/lvuser/FRCUserProgram.jar
That command should allow visualvm to connect to the roborio over port 8348
Reply With Quote