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

Feature Idea: Newrelic for Jython



Jython version: 2.7.0
Newrelic version:

I was testing things out on a jython shell and I’ve got this:

>>> import newrelic.agent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "..../newrelic/", line 1, in <module>
    from newrelic.config import (
  File "..../newrelic/", line 18, in <module>
    import newrelic.core.agent
  File "..../newrelic/core/", line 18, in <module>
    import newrelic.core.application
  File "..../newrelic/core/", line 22, in <module>
    from newrelic.core.data_collector import create_session
  File "..../newrelic/core/", line 20, in <module>
    from newrelic.common import certs, system_info
  File "..../newrelic/common/", line 7, in <module>
    import multiprocessing
ImportError: No module named multiprocessing

then I’ve found this stackoverflow answer stating that multiprocessing module is not available because it requires C extensions:

Looking into the’s code, I can see that it has code that tried to support Jython though. e.g.

from java.lang import Runtime

Even with bypassing that import, there’s another file that imports cProfile too which seems to be another thing that Jython does not have.

Any advice?

New Relic Edit

  • I want this too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


We don’t currently support the Python Agent with Jython. I will create a Feature Request on your behalf to add support for Jython.

I’ll tag @RyanVeitch who will convert this to a Feature Request thread for you! :slight_smile: