Parameter: debugjavascript

Startup parameters change the behavior of the HPE Service Manager server. You can always set a startup parameter from the server's operating system command prompt.

Parameter

debugjavascript

Description

This parameter causes the HPE Service Manager server to write JavaScript debugging messages to the log file. Its value can be 1, 2, or 3.

  • 1: Prints log information when an object is compiled, created, or disposed.
  • 2: In addition to the output of debugjavascript:1, prints log information when the garbage collector of the server's internal JavaScript engine is started or stopped.

    Tip Prior to SM9.30P3HF6, the JavaScript engine's garbage collector had some defects, which caused objects to get released when they were still in use. The debugjavascript:2 setting is helpful for identifying such kind of issues.

  • 3: Forces the JavaScript engine to run garbage collection before running any JavaScript scripts.

    Caution This setting is intended only for developers, and must not be used in production environments.

Valid if set from

Server's operating system command prompt

Initialization file (sm.ini)

Requires restart of the Service Manager server?

No

Default value

None

Possible values

1, 2, and 3

Example usage

Command line: sm -httpPort:13080 -debugjavascript:1

Initialization file: debugjavascript:1