ktpktr0 opened a new issue, #21930:
URL: https://github.com/apache/pulsar/issues/21930

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   CentOS Linux release 8.2.2004 (Core) 
   apache-pulsar-2.10.5
   
   ### Minimal reproduce step
   
   I use the following configuration
   ```
   [Unit]
   Description=pulsar
   After=network.target
   
   [Service]
   Type=forking
   
   Environment="JAVA_HOME=/usr/local/java/jdk1.8.0_162"
   ExecStart=/shht/apache-pulsar-2.10.5/bin/pulsar-daemod start standalone -nss 
-nfw
   ExecStop=/shht/apache-pulsar-2.10.5/bin/pulsar-daemon stop standalone -nss 
-nfw
   PrivateTmp=true
   
   [Install]
   WantedBy=multi-user.target
   ```
   
   
   ### What did you expect to see?
   
   Using the same configuration, it works well on Centos 7.9
   It can start up and self start successfully under Centos8
   
   ### What did you see instead?
   
   出现以下报错:
   ```
   Jan 19 14:47:21 ecs-0002 systemd[1]: Started pulsar.
   Jan 19 14:47:21 ecs-0002 pulsar[22461]: Unrecognized option: 
-Xlog:gc*:logs/pulsar_gc_%p.log:time,uptime:filecount=10,filesize=20M
   Jan 19 14:47:21 ecs-0002 pulsar[22461]: Error: Could not create the Java 
Virtual Machine.
   Jan 19 14:47:21 ecs-0002 pulsar[22461]: Error: A fatal exception has 
occurred. Program will exit.
   Jan 19 14:47:21 ecs-0002 systemd[1]: pulsar.service: Main process exited, 
code=exited, status=1/FAILURE
   Jan 19 14:47:21 ecs-0002 systemd[1]: pulsar.service: Failed with result 
'exit-code'.
   Jan 19 14:48:18 ecs-0002 systemd[1]: Starting pulsar...
   Jan 19 14:48:18 ecs-0002 systemd[1]: pulsar.service: Control process exited, 
code=exited status=203
   Jan 19 14:48:18 ecs-0002 systemd[1]: pulsar.service: Failed with result 
'exit-code'.
   Jan 19 14:48:18 ecs-0002 systemd[1]: Failed to start pulsar.
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to