Skip to content

JMX support or newrelic? #22

Closed
Closed

Description

@soudmaijer

Hi,

would it be possible to add JMX as an option to the Java build pack? Newrelic would also be fine, but how do we enable this on a local installation?

Activity

  1. glyn commented on Nov 15, 2013

    @glyn
    Contributor

    Exposing additional ports from the droplet is a bit tricky, so JMX support wouldn't be trivial to add. Of course the buildpack supports Newrelic and it should simply be a matter of defining a Newrelic service locally and then binding the service to an application. The buildpack will then run the Newrelic agent. We recently added support to the buildpack so that it would recognise a user-provided Newrelic service - see the Newrelic framework for details.

  2. nebhale commented on Nov 18, 2013

    @nebhale
    Contributor

    @soudmaijer At the moment, the buildpack can't assign ports arbitrarily, that can only be done by the core Cloud Foundry runtime. If a JMX port is really important to you, I'd recommend that you open an issue (for more than just an HTTP/S port) with them and we'll support it as soon as it's available.

    In the meantime, has the zero-touch New Relic support worked for you?

  3. kelapure commented on Nov 18, 2013

    @kelapure

    As a workaround can we use the websockets approach as explained here to tunnel JMX over the existing inbound port ... ?

    • Create a tunnel servlet TunnelServlet.java and bind this to /debug/mytunnelservlet in
      your webapp.
      – On your client machine, you have a separate application that accepts your application
      url and port you want to connect to
      – This will allow developers to connect to Liberty using Jconsole or Visualvm

    see
    https://github.com/sstur/node-websocket-tunnel
    http://grokbase.com/p/cloudfoundry.org/vcap-dev/1385efw28y/one-app-withmultiple-
    ports

  4. nebhale commented on Dec 4, 2013

    @nebhale
    Contributor

    Since there has been no response on this issue for a fortnight, I'm going to close this. If you find that you are still having trouble, please feel free to open another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions