Overview
Version
| Report Project |
|---|
11.0 |
Application Scenario
Before restarting the project, you need to end all project-related processes completely.
You want to stop the project.
Function Description
This document introduces methods for stopping and restarting projects deployed on Tomcat, WebLogic, and WebSphere servers in the Linux system.
Note: Other Description
1. For FineReport projects deployed in Tomcat, WebLogic, or WebSphere containers, you can stop the projects by shutting down the container.
2. For FineReport projects deployed in containers, if lingering threads remain in the system due to improper user operations or other reasons, the system will detect the threads upon project startup and send a platform message to notify the admin. The message content is as follows:
Standalone deployment: "Process residues may exist in No.XXX process. To ensure the normal operation of the current application, you are advised to check whether process residues exist in time."
Cluster deployment: "Process residues may exist in No.XXX process in the XXX node. To ensure the normal operation of the current application, you are advised to check whether process residues exist in time."
Tomcat Container
In this example, the project is deployed in /home/wendy/tomcat-linux.
Stopping the Project
Run the following commands to:
1. View project-related processes, as shown in the following figure.
ps -ef|grep tomcat-linux

2. Kill the project processes and check for lingering processes. All project-related processes must be killed, as shown in the following figure.
kill -9 31126

Restarting the Project
Run the following commands to:
1. Enter the bin folder and restart the project, as shown in the following figure.
cd /home/wendy/tomcat-linux/bin./startup.sh

2. Check the real-time log. If the consumed time is displayed in the log, the project has been restarted successfully, as shown in the following figure.
cd /home/wendy/tomcat-linux/logstail -f catalina.out

WebLogic Container
Stopping the Project
Run the following commands to:
1. Check the process ID, as shown in the following figure.
ps -ef|grep weblogic

2. Kill all project-related processes and check for lingering processes, as shown in the following figure.
kill -9 113351
kill -9 113352
ps -ef|grep weblogic

Restarting the Project
Locate the directory containing the startWebLogic.sh file. In this example, the directory is domains in /web/weblogic/Oracle/Middleware/user_projects. Run the following command to enter the directory and restart the project, as shown in the following figure.
cd /web/weblogic/Oracle/Middleware/user_projects/domains
nohup ./startWebLogic.sh &
ps -ef|grep weblogic

WebSphere Container
Stopping the Project
Run the following commands to:
1. Check the process ID, as shown in the following figure.
ps -ef|grep WebSphere

2. Kill all project-related processes and check for lingering processes, as shown in the following figure.

Restarting the Project
Locate the directory containing the startServer.sh file. In this example, the directory is bin in /opt/IBM/WebSphere/AppServer/profiles/AppSrv01. Run the following command to enter the directory and restart the project, as shown in the following figure.
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
./startServer.sh server1
ps -ef|grep websphere

Note: