apache / apache/incubator-seata
-Xloggc is deprecated
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
- [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
### Ⅰ. Issue Description
环境java11,启动seata报错
[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/home/simpler/seata/logs/seata_gc.log instead.
[0.001s][error ][logging] Error opening log file '/home/simpler/seata/logs/seata_gc.log': No such file or directory
[0.001s][error ][logging] Initialization of output 'file=/home/simpler/seata/logs/seata_gc.log' using options '(null)' failed.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
修改seata-server.sh
去掉-Xloggc参数后正常启动
### Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
```
Just paste your stack trace here!
```
### Ⅲ. Describe what you expected to happen
### Ⅳ. How to reproduce it (as minimally and precisely as possible)
1. xxx
2. xxx
3. xxx
### Ⅴ. Anything else we need to know?
### Ⅵ. Environment:
- JDK version :java11
- OS :deepin
- Others:
Contributor guide
Research direction
Start with seata-server.sh and reproduce the startup on JDK 11 using the reported environment. Check the JVM logging options and the seata_gc.log destination; done means the server starts without the deprecated option or missing-log-file failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100