Skip to main content
Participant
July 23, 2024
Question

Need help with CF Performance Monitoring Toolkit

  • July 23, 2024
  • 5 replies
  • 1528 views

Hi everyone, recently our CF server been having some performance issues so I was tasked to install the PMT for monitoring and troubleshooting. After installing and setup the PMT server on a seperate VM. I was able to connect the 2 servers sucsessfully. However, when I check the metrics inside PMT  dashboard, the stats  are all showing 0.

 

One thing I noticed is the metrics show up for a few seconds whenever I reboot the PMT server  but immediately goes to 0 until next time I restart the service.

 

I have tried completely reinstalling Windows and PMT server and the issue is exactly the same.

 

I have tried to look for some setup guide online but seems to be very limited and I cannot find anything that explains the full setup procedure incase I did something wrong.

 

    This topic has been closed for replies.

    5 replies

    Inspiring
    December 20, 2024

    Can I ask how you were able to get PMT to monitor instances that are on a different server? I had it working here once and have not been able to get it working since.

     

    Thanks

    Forrest

    Charlie Arehart
    Community Expert
    Community Expert
    December 21, 2024

    Forrest, a key thing is that the cf server needs to be able to reach the server where the pmt datastore is implemented, as I noted in my first reply to Jimmy above in July. 

     

    And that means specifically being able to reach the port the ds is listening on, so a ping test alone does not suffice. The default is 9200, but you can also find the port it's listening on in its logs, which might also indicate possible errors. 

     

    And you may need to configure any firewall that's protecting the pmt server (whether one on the server itself or in its network) to ALLOW that incoming call from that CF server, to access that port.

     

    Let us know if this gets you going. If not, check out the pmt and ds logs.

     

    And if you still struggle to get it working, I'll repeat the two suggestions I'd offered Jimmy in that July reply:

     

    First, consider implementing fusionreactor to monitor the pmt and datastore (even just using its free trial) to assist in seeing what's going on within those Java-based services. I've done it and it's helped. Even if long-term you prefer to use the pmt rather than FR to monitor cf, I'm simply proposing using it to help setup the pmt, counterintuitive though that may seem to some ears. 🙂

     

    Second and finally, I can help directly (over remote screenshare) and likely quite quickly. You won't pay for any time you don't find valuable. More at carehart.org/consulting. 

    /Charlie (troubleshooter, carehart. org)
    Inspiring
    December 21, 2024

    We got it working once, then my ISP changed my service and modem/router and it has not worked since.

     

    Basically the issue is that I need a way to have traffic coming in to my public IP be able to reach the PMT datastore. Before it worked by setting up separate network bind host and separate network publish host, but that no longer works. For whatever reason when PMT tries to connect to a cf instance, it is telling the instance to use my internal IP even though it is set up using the external IP for publishing.

     

    I tried a bunch of things and none work. So I need a networking guru to tell me how I can just run PMT and the datastore on my internal IP, and have all traffic that comes in to my external IP on the PMT ports be directed to my internal IP. I used my router do do this for web traffic but it is not working for PMT traffic, most likely because PMT keeps telling the instances that the datastore is at my internal IP.  My external IP can be reached using curl and port 9250 from the cfserver, but I can't seems to get the cf instances to use that IP, even if I manually change it by editing the neo-monitoring.xml files and restarting the instance. We just don't have enough resources on the cf server to run everything there.

     

    I might try the FR trial as a temp solution to debug slow queries that need fixed.

    BKBK
    Community Expert
    Community Expert
    July 25, 2024
    quote

     I was able to connect the 2 servers sucsessfully. However, when I check the metrics inside PMT  dashboard, the stats  are all showing 0.


    By @Jimmy387770720y4n

     

    Upon reviewing this, I am beginning to think that something is amiss. You say the stats are all showing 0. However, from the picture you've attached, the stats for Memory, CPU, Disk I/O and Network I/O are not 0. So, what do you mean by "the stats are all showing 0"?

     

     When you have a typical ColdFusion application, the three main dashboards you will frequently look at are Overview, CF Metrics and Applications. So let's do a test and see what those dashboards tell us.

     

    Launch several CFM pages. Their content doesn't matter. In fact, blank CFM pages will do. What's important is to get the ColdFusion application to run.

     

    Then click, in turn, on the dashboard menus Overview, CF Metrics and Applications.What do you see? Remember to scroll each time. Can you please share the printscreens?

     

     

    BKBK
    Community Expert
    Community Expert
    July 24, 2024

    Some suggestions:

    1.  Make sure you install the version of Performance Monitoring Toolkit (PMT) that is compatible with your ColdFusion version. Hence PMT 2023 on CF 2023, PMT 2021 on CF 2021, and so on. (Incidentally, what is your ColdFusion version and update level?)

    2.  Before you install PMT, ensure that ColdFusion has all the packages needed to integrate with PMT. One way to ensure this on CF 2021 and CF 2023, in particular, is simply to install all the packages.

    Steps to install all packages on CF 2021, for example:

    (a)  Open the command prompt (CMD) as administrator;

    (b)  Use the DOS command CD to navigate to C:\ColdFusion2021\cfusion\bin;

    (c)  Type cfpm.bat and press ENTER. That should bring up ColdFusion's Package Manager tool;

    (d)  Type install all and press ENTER. When ColdFusion finishes, type quit and press ENTER;

    (e)  Close the CMD window;

    (f)  Restart ColdFusion 2021. 

     

    3.  If you google "performance monitoring toolset" you will find useful information on its installation. You will find the following installation guidelines, for example:

     

    Here are further useful guidelines, once you are up and running:

     

    Participant
    July 25, 2024

    Hey our CF is 2023 update 7, and PMT is 2023.0.0.330120

    PMT monitoring package is installed in CF package manager, as I can see  it showing everything connected in the PMT settings page.

     

    BKBK
    Community Expert
    Community Expert
    July 25, 2024

    The settings look OK.

    Charlie Arehart
    Community Expert
    Community Expert
    July 24, 2024

    One more thing I'll add: it may seem counter-intuitive, but if indeed the pmt or dataatore are running out of resources, note that FusionReactor could be implemented on that server (running those) to watch them.

     

    FR is not just a monitor of CF (or Lucee) but indeed ANY Java application, including the pmt, cf's solr and pdfg services, and much more.

     

    And it has a free 14-day trial (fusion-reactor.com), so there's little reason not to consider it, as a possibly valuable resource to find whatever may be amiss with the pmt and/or datastore. 

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Community Expert
    Community Expert
    July 24, 2024

    The setup of the pmt can indeed be challenging. First, the pmt service and data store (which I assume you mean are both on the other machine) need to each be reachable from the cf server. Further, the machine in which they are installed needs to have several gigs of free memory before being installed...and perhaps may prove to need still more depending on the traffic to the cf server (or servers) being tracked by that pmt implementation. 

     

    As far as the success or failure of that communication into the pmt--as well as the operation of its two components, those are tracked in the various logs for the pmt and pmt datastore.

     

    And note that the datastore is indeed what cf talks to directly, so don't presume it's only the pmt talking to the datasttore.

     

    As for the seeming brief ability for the pmt to show data before it's restarted, that could reflect either the pmt or more likely the datastore running out of resources (memory), which again may be reflected in the pmt and/or datastore logs. 

     

    Hope those generic tips help. If you "just want to solve things", I can offer direct consulting help (carehart.org/consulting), but otherwise perhaps I or others here will be able to help based on info you may share, in back and forth over time. 

    /Charlie (troubleshooter, carehart. org)
    Participant
    July 25, 2024

    Hi Charlie, 

     

    I did try increase the RAM on the PMT/Datastore server to 32GB and it is still behaving the same. The CF server is able to ping the datastore with no issue.