Java service tool¶
Since build 5.2.2180, the Java service command line tool is available. The tool executes some Java service and diagnostics commands like garbage collection for WCS Java process.
Garbage collection¶
This is the command to launch garbage collection. It may be useful if a lot of Java heap memory is occupied while server is not loaded.
Warning
This may affect all the streaming functions. Use with care.
Thread dump collection¶
The command collects thread stack dump to the file.
Warning
When WCS is running on Java 8, the folder should be writable to others
group
By default, the stack dump is collected to a file in /usr/local/FlashphonerWebCallServer/report/
folder, for example
Where:
report-2025-03-07-15-58-28
- subfolder with current date and time501582
- WCS Java main process pid
Heap dump collection¶
The command collects Java heap dump to the file.
Warning
- When WCS is running on Java 8, the folder should be writable to
others
group - This may affect all the streaming functions. Use with care.
By default, the stack dump is collected to a file in /usr/local/FlashphonerWebCallServer/report/
folder, for example
Where:
report-2025-03-07-16-06-00
- subfolder with current date and time501582
- WCS Java main process pid
Flight recording¶
The command starts Java flight recording to the file. Flight recording stops after the duration set.
Warning
- When WCS is running on Java 8, the folder should be writable to
others
group - The server CPU load may increase when flight recording is started
By default, the flight recording is collected during 60 seconds to a file in /usr/local/FlashphonerWebCallServer/report/
folder, for example
Where:
report-2025-03-07-16-11-49
- subfolder with current date and time501582
- WCS Java main process pid