Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Thread Profiler not showing up for jRuby Application

threadprofiler

#1

We are using new relic to monitor a jRuby Sinatea application (v 1.9) using new relic. I have installed the new relic gem and imported in the application using require.

We like to do thread profiling , xray and more information for garbage collection. I don’t see any data in thread profiler. Do we need to install the java agent too?


#2

Hey @anant.sajnani1~!

I wouldn’t expect you to need the Java agent installed for a jRuby app. Can you send us a link to the application so I can check it out?


#3

Thanks @jkinsey. I sent you the application link in a private message. jRuby runs on the java platform so thought we need a java agent also.


#4

I’m seeing the page, so it doesn’t seem to be a UI issue but I don’t see any saved thread profiles. Can you tell me a bit more of what happens when you press Start Profiler (I don’t want to do this on your application)? Does it fail? Do your results vary with a 1 or 2 minute profiling session instead of 5 minutes?


#5

I don’t see start thread profiler button. Do you ?


#6

I do! I’m on a Mac on the latest version of Chrome. If you don’t see it, please let me know if you think this may be a UI issue.

Under Events, I’m going to Thread Profiler.


#7

Thank you. I don’t see the start thread profiler in chrome or safari. I am on a mac too.

. Could this be access related?


#8

Hi, @anant.sajnani1: Yes, you must be an account administrator or have the APM Manager role in order to run the thread profiler. You might check with your account administrator and see if you have the necessary permissions.


#9

Thanks for the quick response.


#10

Thanks I can see the start profiler option now. I still do not see stats for ruby heap size, object allocations and constant cache invalidations. https://rpm.newrelic.com/accounts/2042292/applications/265045436/ruby_vms. Do you know why?


#11

Do you meet the minimum requirements listed here? https://docs.newrelic.com/docs/agents/ruby-agent/features/ruby-vm-measurements


#12

Yes i do. Do I need to enable GC::Profiler? Can I enable it in newrelic.yml?


#13

Did you follow the link in the documentation? https://docs.newrelic.com/docs/agents/ruby-agent/features/garbage-collection. You must enable it in your application’s initialization code.


#14

Thank you. I will look into it.


#15

Awesome! Let us know how that goes @anant.sajnani1