Legacy Knowledge Base
Published Sep. 10, 2025

Glowroot is not working : Connect to localhost:4000 [localhost/127.0.0.1] failed: Connection refused

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Glowrrot is not working and giving these errors:
    ERROR [http-nio-8080-exec-5][GlowrootProxyServlet:66] null
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:4000 [localhost/127.0.0.1] failed: Connection refused: connect

Environment

  • Liferay DXP 2023.Q4+

Resolution

  • The 4000 port is the default here.
  • Now, to start with this, first, need to stop the DXP server if users have run the server via ./catalina.sh run, they must run the command ./catalina.sh glowroot run.
    • Please view the attached screenshot for console logs showing the growroot port or information. console-logs-glowroot.png
       
      However, in case of docker, enabling Glowroot with the GLOWROOT_ENABLED environment variable set to true. For example,
      docker run -e GLOWROOT_ENABLED=true -it -m 8g -p 8080:8080 liferay/dxp:latest
       
      Whereas, if using a Tomcat bundle, run Glowroot from the command line. Navigate to the bundle’s $CATALINA_HOME/bin folder. Then execute ./catalina.sh glowroot run.
       
      When users run this command, they will see the same DXP UI as before. Users will be requested to sign in. Please enter the administrator credentials.

      To access Glowroot, first log in to your Liferay instance with your administrator account. Glowroot can only be accessed by users with an administrator role.

       
      Now, navigate to http://localhost:8080/o/glowroot to access the dashboard.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base