March 8, 2019
Running the CF 2018 PMT? Have you manually applied the recent update to it?
Comments
(9)
March 8, 2019
Running the CF 2018 PMT? Have you manually applied the recent update to it?
ColdFusion troubleshooter
Guide 146 posts
Followers: 119 people
(9)

Are you running the CF2018 Performance Monitoring Toolset, or PMT? If so, are you running with the PMT as installed by its original installer from 2018? And finally, if so, did you realize that there was an update for that? In this post, I help you answer these questions and understand and apply the update.

It would be very easy to miss the fact that update 2 of CF2018 provided an update for the PMT, as implemented with that original PMT installer.  More than that, note that the PMT update is one that you must apply MANUALLY yourself. It’s not performed for you as part of running the CF update. And the new PMT update not only fixes some bugs, but it also adds some new features to the PMT.

This post helps you perform the update and understand better what’s new and changed in the PMT Update.

  • How would you know this PMT update exists?
  • How would you know if you have the original PMT installer needing the update?
  • Running the PMT update from the command line
  • Assessing how the PMT update went
  • How to uninstall the PMT update
  • What features are added by the PMT update
  • What are known issues even after the PMT Update

How would you know this PMT update exists?

You could be forgiven for missing the availability of the PMT update entirely. For one thing, there’s no mention of it at all in the CF2018 update 3 and later technotes, and there’s only a brief one in the technote for CF2018 update 2 which offered it. Let me explain.

Perhaps like many, you may have missed (or skipped or held out on) running CF2018 update 2 (from Feb 12) and you may just now be applying update 3 (from Mar 1), or later if reading this after this March writing. If so, then note that you won’t even SEE mention of the PMT update in the technote for CF2018 update 3, and beyond.

Sidebar: Note as well that you also won’t see in later update technotes any mention of the many other improvements added in a previous update. Instead, they leave you to “know” to go back and look at previous update technotes, to see what the previous update offers. I plan to do another post soon to highlight that for folks, as it’s of course a bigger issue than just this PMT update. (Thankfully, since I posted this, Adobe has started to go back and add a note to the top of recent update technotes to point this out this need to see previous update technotes.)

If you DO look at the technote for CF2018 update 2, which included the PMT update, you will find this brief mention:

Updates to Performance Monitoring Toolset. When you install Update 2, the Performance Monitoring Toolset Hotfix also gets downloaded. The Hotfix is located in [CF_HOME]cfusion\hf-updates\hf-2018-00002-313919\PMT-hotfix.

Here again, you could be forgiven for not only missing it, but missing the significance of that it’s trying to convey. Let’s consider a few things that sentence does and doesn’t tell us:

  1. Note that the link offered is NOT a link to info about the PMT (as you might presume from the words used in the link). Instead it is in fact a link to a technote ABOUT the PMT update
  2. Note that the link (and the doc it links to) refers to the PMT update as “update 1”. So to be clear, CF2018 Update 2 introduced this CF2018 PMT Update 1. It makes sense, but since PMT updates are a new thing, I just want to draw attention to this distinction
  3. Note that the text tells us WHERE “the hotfix is located”, but it does NOT tell us [a] THAT the update is a jar (java archive) file, nor [b] that it’s NOT automatically applied by the CF update, nor [c] WHAT we are to do with this info. But I will tell you in a moment
    • Beware also: if you apply update 3 or above, then the folder with the PMT update IS still provided but would instead be in teh folder for THAT update, such as hf-updates\hf-2018-00003-314033\PMT-hotfix
  4. Finally, note that the text doesn’t convey anything about what is fixed nor that there is anything new, related to the PMT with this update. You would find that in the release note it points to, but again I will share more, below

So, now we now there IS a PMT update (for those running the original PMT installer), and we have a sense of where it is and that we need to do something with it. Let me explain that, and then we will move on to highlighting what’s new and fixed in the PMT update.

How would you know if you have the original PMT installer needing the update?

As I mentioned above, Adobe does provide links to the latest PMT installer at the CF downloads page, specifically here. But note that they don’t offer the MD5 checksums for these.

At least on Windows, one can tell which is which by right-clicking the installer exe, choosing properties, and viewing the “file version” field on the “details” tab. It will report 2018.0.0 for the original installer, and 2018.0.2 for the refreshed one with the update from Feb.

I will update this post to help report how to know from the PMT logs or installation folder themselves whether you may already be running the version that includes the update. Briefly, there is an installation log in the root of the PMT installation folder, and it too would report a version like 2018.0.0 or 2018.0.1. Also, if the update has been applied, there is an hf-updates folder also in the PMT folder which would indicate it. See below for more on how to assess if the update was applied successfully.

Running the PMT update from the command line

So I said at the opening that the CF update doesn’t perform the PMT update, and that is true. But note that the CF update DOES actually put the needed update jar file into place, within the folders of the CF update itself.

But then YOU must either run that jar (if the PMT is on the same machine) or copy that jar to the machine where you do have the PMT running, and run it there. (The PMT is not only designed to run on a server separate from the CF instance/s it is monitoring, but it is generally recommended that you run it separately, as the PMT can be a resource-intensive tool itself.)

Since the PMT update is a jar file, we need to execute it using Java. And for most folks, you will want to run that from the command line.

First, we need to take note of the locations for the PMT and CF installation directories. Follow these steps:

  1. Go to wherever the PMT is installed (whatever machine) and take note of the path where the PMT is installed:
    • For a typical Windows installation, it might be simply: C:\ColdFusion2018PerformanceMonitoringToolset
  2. Go to wherever CF2018 is installed (and has update 2 or above installed), and take note of the location of the PMT update jar. As indicated the technote as quoted above, it’s in the hotfix updates (hf-updates) folder for the update you applied:
    • In a typical Windows install, having run CF2018 update 3, that would be C:\ColdFusion2018\cfusion\hf-updates\hf-2018-00003-314033PMT-hotfix
  3. Finally, if the PMT is installed on a machine separate from CF, copy that jar (the name will be simply hotfix.jar to the server where the PMT is installed.
    • You can put it into any folder. The root of the PMT folder itself should be a safe place.

Second, we want to run java from the command line, to execute that jar. And the easiest way to do that is using the Java executable that is itself implemented within the PMT:

  1. Open a command prompt (on that machine running the PMT), and run that “as admin” if on Windows
    • Discussing how to open the command prompt on Windows or Linux, and how to open the command “as admin” is beyond the scope of this blog post. You should be able to find sufficient information via web searching, or find someone with such experience to help
  2. Run the java executable as located within the PMT against the hotfix.jar file

Some readers may be wondering, “Do I really need to go through the bother of opening the command prompt and running the jar that way? Can’t I just click on it to run it?” And the fact is that you may well be able to click on a jar and run it. It depends on whether you have a “public jre” on your server, meaning (among other things) that the java executable is in your system “path”. There are two possible problems with “just double-clicking the jar”. First, it may or may not be the same Java version that your PMT is running. Second, that will not run the jar “as admin”, which may lead to problems in some cases on Windows. So it’s safest to proceed with the command-line install of the update.

Here is the command for a typical Windows install, assuming both CF and the PMT are on the same machine. I have bolded the key elements (running java, with the -jar argument, naming the jar to be executed). The other elements may vary for you depending on file locations and operating system:

C:\ColdFusion2018PerformanceMonitoringToolset\jre\bin\java.exe -jar C:\ColdFusion2018\cfusion\hf-updates\hf-2018-00003-314033PMT-hotfix\hotfix.jar

And if the PMT is on its own machine, but you have copied the hotfix.jar to the root of the PMT folder on that machine, the following is an example command to run:

C:\ColdFusion2018PerformanceMonitoringToolset\jre\bin\java.exe -jar C:\ColdFusion2018PerformanceMonitoringToolset\PMT-hotfix\hotfix.jar

If all is well, this would begin prompting you to proceed with the PMT update.

Before you let it get beyond the first prompt, though, you may want to consider stopping the PMT services yourself. Sure, the PMT update should stop your PMT services (the PMT and the PMT datastore), but it may not. You may want to do that yourself, as a precaution. The name (“display names”) of the services are “ColdFusion 2018 Performance Monitoring Toolset” and “ColdFusion 2018 Performance Monitoring Toolset Datastore Service”, respectively (though note that technically the “service name” of the datastore service is “elasticsearch-service-x64”, if you may be stopping it from the command line.)

Anyway, back to the installer, as it proceeds through its prompts, note that one of the prompts will ask where the PMT is installed. It will presume to know where it’s installed (in the case of Windows, on the C drive), so note that you may need to tell it where YOU have installed the PMT, as we discovered above. It won’t let you proceed until you tell it the location where the PMT is installed.

(Some may know that the CF updates themselves are also downloaded as jar files, but since the CF Admin offers a UI for applying them, you may never notice that. And note that this same option to run the jar from the command line is an option–even sometimes a preferred method–for running the CF updates. Again, that’s beyond the scope of this post.)

Assessing how the PMT update went

Assuming all goes will with the update, it will soon report that it is starting the PMT services, and if you then visit the url for the PMT, you should see it prompting you to login.

But you may get an error during the installer. For instance, it’s not uncommon in my experience for you to get an error at the end of the PMT update installer reporting:

Unable to start Performance Monitoring Toolset

Cannot start Performance Monitoring Toolset. Check if the Datastore is up and running

You might naturally panic at the sight of this, but not to worry. Just proceed past that prompt. You may even see the next prompt reporting “congratulations”, and that the update was “successfully installed”. Close that prompt, and just go start the services for the PMT datastore and then the PMT itself (I shared the names above). It just seems to be perhaps a timing issue.

Always check the update logs

Before you move on (whether there is a seeming problem or not), note that there is a log for the update. (The log won’t be written until you completely finish the update, closing any remaining prompts.)

It’s always wise to look at that update log, to confirm there were no errors. The PMT update install log would be found within the PMT folder in a newly available hf-updates (for the PMT, not to be confused with the hf-updates for the CF installation folder). In a typical Windows install, the install log would be found at D:\ColdFusion2018PerformanceMonitoringToolset\hf-updates\hf-2018-00001-313919, and the install log might have a name like Adobe_ColdFusion_2018_Performance_Monitoring_Toolset__Update_1_Install_03_07_2019_23_16_02.log. Open that and look for a table (close to the top than the bottom) headed “Summary”, and reporting a count of Successes and Errors. You want all successes.

(I did blog post recently (here on the CF portal) talking about how and why to check that same sort of update install log after any CF update, as well. While the location to look in will be different, the discussion of what to look for and how to respond to problems will be substantially similar. See Having problems after applying a CF update? What to check first!)

And note that there are also logs for the PMT and the PMT Datastore services themselves (in the log and datastore/logs folders of the PMT directory.)

If you really get stuck with the install of the update, note that you can reach out for help from the Adobe CF team, who offer an email address for installation problems, called cfinstal@adobe.com. (Yes, that really is just one “L”.) Or I am available on a consulting basis for remote, short-term assistance, with satisfaction guaranteed.

How to uninstall the PMT update

While you shouldn’t need to do it, note that you CAN uninstall the PMT update. To do so, you would just use the information and command-line examples above, but instead point to the uninstaller.jar file found in the C:\ColdFusion2018PerformanceMonitoringToolset\hf-updates\hf-2018-00001-313919\uninstall folder.

And note that after uninstalling, there is an uninstall log in the same HF-Updates location for the PMT Update 1, as discussed above. you should always check that also to make sure there are 0 errors.

What features are added by the PMT update

Assuming all goes well with the update, you may wonder, “what was all that bother for?” 🙂 I hinted above that there were both new PMT features and PMT bug fixes. Let’s look at the new features first. And there are two places that you can see a discussion of what was new in the PMT update.

First, PMT update 1 technote I pointed to before does list a few new items (and note that it offers a link to more info on each new/changed feature):

  • Support for HTTPS/SSL (you can now access Performance Monitoring Toolset dashboard over secured HTTPS/SSL)
  • Tree view of Code Profiler data (you can see the results of a Code Profiler in the form of a tree-like structure in ColdFusion Builder)
  • Datastore health monitor (you can set alerts and check Datastore health, if any parameter goes beyond a defined threshold)
  • Change theme (you can switch between a dark and a light theme)
  • Most frequently run queries (you can see a graph of most frequently run queries and check SQL statistics for the queries
  • View tracked and un-tracked servers (you can view both tracked and un-tracked servers in the Topology section)

Check out the links offered on that update technote page, for more on each of those.

FWIW, I’ll point out that there is yet another place that lists these new features in the PMT per its update: did you know there is actually a “release notes” page for each CF version, and it’s updated for each update that adds new features, and that also happens to lists the new features per the PMT update offered in that CF 2018 Update 2. What I’m referring to is the section on update 2 in the cf2018 update “release notes”, which is pointed to from the CF 2018 Update 2 technote.

Sidebar: many people don’t realize/notice there even IS a release notes document for the updates of each release. That’s a topic for another blog post I plan. Again note that not EVERY update has a section in the notes for that release, since some updates may just add a bug or security fix, having no related feature change.

What are known issues even after the PMT Update

Finally, even after applying the PMT update, there are still a few “known issues”. These are discussed in the PMT update 1 technote ,”known issues” section. See that for more, but briefly, the issues relate to:

  • How the PMT will fail to start if, after installing it, you point it to use Java 11, and how to fix that
  • How if you need to change the PMT username/password, you must uninstall the PMT update, change the password, and then re-install the update
  • An issue related to SUSE Linux and the username used to run the PMT
  • REST data does not get captured for a J2EE node in Performance Monitoring Toolset
  • An issue when connecting a J2EE server that is running a node on SSL

So, lots to say and know about the PMT update. Who knew, right? Well, now you do!


For more blog content from Charlie Arehart, see his posts here as well as his posts at carehart.org. And follow him on Twitter and other social media as carehart.

9 Comments
2019-08-20 01:57:11
2019-08-20 01:57:11

I’ve learned today that there is yet another bug in the PMT causing a negative impact on CF (indeed cfquery) processing. See the thread on the problem, and the reply from Priyank of Adobe pointing out that the problem seems due to the PMT, at https://forums.adobe.com/message/11219355#11219355. As of this writing, there is not a PMT update available to fix this, but we can expect there will be one made available eventually.

Like
2019-07-09 20:56:08
2019-07-09 20:56:08

A little bit old on the thread, but has anyone using PM experiencing issues with the datastore (Elastic-search) process consuming most CPU cycles?  Is there a way to tame that process to lower burden on CPU?

Like
(1)
>
obxBillSurf
's comment
2019-07-10 23:29:52
2019-07-10 23:29:52
>
obxBillSurf
's comment

There can be many reasons for that. I’d start with whether the logs (in the elasticsearch folder) tell you anything. Then, is the box on which it’s running perhaps under-powered? Is it running on the same box as the PMT? or worse, the same box as CF? I can say that I have seen boxes buckle under the weight of running all 3.

And even if it’s broken off on its own server, it could still be underpowered. Then it’s just a process of managing/troubleshooting it like any elasticsearch process.

For instance, it could be that the heap settings for the PMT or datastore are set to use too much heap (for the box they are running on), or too little (for the work they are being asked to do). There are config files for setting the XMX for both, but it’s beyond the cope of this post to get into those details. 

Or it could be that someone has configured features in the PMT that are causing a lot of data to be tracked. You may want to assess those configurable features. (I’m not sure of a way to observe those via any config file.)

Finally, it could just be that your CF site (or sites or servers) being monitored by the PMT just have high volume of traffic on the site(s), which leads to lots of data being tracked in the datastore.

Just some thoughts to start you on the process.

I will add, FWIW, that you can monitor both the PMT service itself and Elasticsearch with FusionReactor. While most know it as a monitor for CF, it is in fact a monitor for any Java app, and the PMT and elastic both are. It’s not a built-in option within FR (takes some manual configuration) but should be doable, if you may want to dig in that way. (Let me know if you may want to pursue that under the guise of consulting, at carehart.org/consulting.)

But if something else above helps, great.

Like
2019-05-27 04:35:16
2019-05-27 04:35:16

Giancarlo Gomez  Hi JC.

Charlie, I searching to see if there are any know issues with Windows 2016 and came across your post here. On a fresh AWS ec2 instance, Windows 2016, CF 2018 Update 3 applied, CF 2018 Lockdown applied. installed the toolset and the services refused to start. The toolset logs seem  to indicate a connection issue with the datastore and I thought it might be a timing issue as well.

But I applied the PMT update and the issue remains, services will not start regardless of the order I start them in. I did check the “known issues” for this release which does not apply to my situation.

Thanks,

Dan

Like
(2)
>
djokeefe123
's comment
2019-05-27 05:45:40
2019-05-27 05:45:40
>
djokeefe123
's comment

Dan, did you assess what I discuss in the section here, “Always check the update logs”? And did you see the first bullet in the known issues section?

Finally, if those don’t get you going, see the help resources I offer at the bottom of that section on checking the logs.

Like
>
djokeefe123
's comment
2019-07-10 22:32:57
2019-07-10 22:32:57
>
djokeefe123
's comment

Dan?

Like
2019-03-09 14:52:29
2019-03-09 14:52:29

The Performance Monitoring Toolset has a refreshed installer available here from February 2019:

https://www.adobe.com/support/coldfusion/downloads.html

I don’t know if this includes PMT Update 1 or not. Note that if you go to the main download link for CF 2018 (http://www.adobe.com/go/trycoldfusion) it still offers the old PMT installer.

Like
(1)
>
Legorol
's comment
2019-07-10 22:42:05
2019-07-10 22:42:05
>
Legorol
's comment

Legorol, yes, the newer installer is indeed newer and larger than the original, and includes the update. Thanks for pointing that out. I’ll update the post to clarify that this applies to the original installer. 

One can tell which is which in Windows at least by right-clicking the installer exe, choosing properties, and viewing the “file version” field on the “details” tab. It will report 2018.0.0 for the original installer, and 2018.0.2 for the refreshed one with the update from Feb.

Like
2019-03-09 13:18:40
2019-03-09 13:18:40

Thank you for the detailed post Charlie! I just applied the update.

Like
Add Comment