The Code Tracing monitor displays so many pages of Code Traces that it is difficult to delete them all in the GUI. The customer would like to just remove them all and start over.
Zend Server for IBM i, running on any supported version of IBM i.
ZENDPHP7 for versions 9.1.x and higher (including 2018.0.x and 2019.0.x)
ZENDSVR6 for version 6 - 8
2. Using Navigator, the RSE view in Zend Studio, a mapped network drive, a graphical FTP client like FileZilla, or any other utility you may have, navigate to this folder in the IFS:
Note: If you are on Zend Server versions 6 - 8.5.x, please replace all instances of ZENDPHP7 with ZENDSRV6
Delete all of the files in the directory. You can use the wrklnk command to do this task, but there may be thousands of files to page through, so a tool with a graphical interface is probably much easier. It can take a lot of time to delete many thousands of files from the IFS, so you can do most of this ahead of time during the day, then finish up any late additions just prior to the restart of Zend Server.
3. Next, please navigate to this folder (it should be right next to the previous folder):
Delete file codetracing.db.
Delete file monitor_codetracing if exists
4. Stop and Restart Zend Server. From the 5250 command line:
Use option "2. Stop Zend Server Subsystem". Then, on the command line below the menu:
Verify there are no active jobs in the subsystem. If any jobs remain, use F5 a few times until they are all gone. If any jobs persist for more than a few minutes, end them manually. Then, F3 back to the command line and:
Verify there are no jobs named ZENDPHP7 in this subsystem. There can be other jobs and those other jobs should be left alone. As before, use F5 until all the ZENDPHP7 jobs are gone, and feel free to end them manually if it seems you are waiting to long. Then use F3 to return, which should bring you back to the menu.
Use option "1. Start Zend Server Subsystem". This will start up Zend Server. Give it a couple of minutes for all of the Apache jobs to start, then return to the Zend Server Admin in your browser and verify that there are no Code Traces showing on the Overview -> Code Tracing tab.