New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Assignees
Comments
Node failed to boot because UseConcMarkSweepGC
isn’t supported, presumably because it was removed in OpenJDK 15?
https://gradle-enterprise.elastic.co/s/kloq36r7j4e3w
ES_BUILD_JAVA=openjdk13,ES_RUNTIME_JAVA=openjdk15,nodes=general-purpose
OS | openSUSE Leap 15.1, Linux 4.12.14-lp151.28.36-default
Specs | 32 CPUs, 94.4GB RAM
java.version | 13.0.2
java.vm.name | OpenJDK 64-Bit Server VM
java.vm.version | 13.0.2+8
java.runtime.version | 13.0.2+8
java.home | /var/lib/jenkins/.java/openjdk-13.0.2-linux
12:31:34 » Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
12:31:34 » output:
12:31:34 »
12:31:34 » error:
12:31:34 » Unrecognized VM option 'UseConcMarkSweepGC'
12:31:34 » Error: Could not create the Java Virtual Machine.
12:31:34 » Error: A fatal exception has occurred. Program will exit.
12:31:34 » at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:118)
12:31:34 » at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:86)
12:31:34 » at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
12:31:34 » at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:92)
Pinging @elastic/es-core-infra (:Core/Infra/Build)
polyfractal
changed the title
Unrecognized VM option ‘UseConcMarkSweepGC’
Unrecognized VM option ‘UseConcMarkSweepGC’ on OpenJDK 15
Jan 23, 2020
Copy link
Contributor
Author
Probably related to: #51335
This is because:
- JDK 15 removed support for the CMS-related flags
- this is a build with a JDK 15 runtime Java
- we are trying to start the 7.5 BWC cluster using the same runtime Java (JDK 15)
- not using CMS-related flags (Restrict support for CMS to pre-JDK 14 #49123) was not backported to 7.5 since there was no expectation of supporting JDK 14 nor JDK 15 on 7.5
We use to have it in the build that when we started the BWC cluster, we would use a version of the JDK that the version that we were starting was known to be compatible with. I think that when starting older clusters, we should use the bundled JDK overriding the runtime JDK. That’s what we need here, and in general, so that we are only starting clusters against versions of the JDK that the version being started supports. Can you investigate making this change @mark-vieira?
I think that when starting older clusters, we should use the bundled JDK overriding the runtime JDK.
Agreed. In fact we have an open issue to use the configured bundled JDK version for all integration testing (except Java matrix tests).
That’s what we need here, and in general, so that we are only starting clusters against versions of the JDK that the version being started supports.
We don’t have a notion of maximum runtime Java version defined in an easily consumable way that I’m aware of. In any case, when we fetch BWC versions from a archive distribution we don’t have any kind of metadata here either. I suppose we can hardcode this, which is probably fine given we only have to go back 1 major version and moving forward we always rely on using the bundled JDK. I’ll work up a solution here.
That brings us to #43071 so it’s only that we never implemented this for testclusters.
We don’t have a notion of maximum runtime Java version defined in an easily consumable way that I’m aware of.
We use to have this, but hard coded into the build as you suggest. It was never pretty to maintain. At some point we moved to using some content out of .ci
(since we know the versions we test against there) but I’m having trouble tracking that down on mobile.
Yeah, that PR you mentioned got blown away with the migration to test clusters and it seems we reintroduced the «just use whatever runtime java is» logic. I’m working up a PR for this. I’m not too worried about maintenance. We only have to consider all current active BWC versions < 7.2, which we know to work on Java 13. I don’t suspect we’ll ever have to change this as going forward we won’t introduce any new versions that don’t also include a bundled JDK.
As well as the problem of 7.x being BWC tested against older versions that don’t support Java 15, there is also the problem that we appear to be using Java 15 in CI builds for branches older than 7.x. For example, https://gradle-enterprise.elastic.co/s/mp33jqizng4l2 is a 7.5 branch build that tried to use Java 15 and failed because UseConcMarkSweepGC
wasn’t recognised.
Good catch. Yes, as per Jason’s comment we should not be testing 7.5
on Java 14 or 15. I’ve removed that with 24f0267.
This has not been backported to 7.x
or 7.6
. This issue was mistakenly closed when the master
PR got merged.
This should be sorted out now that #51505 has been backported.
Just updated two instances of ES on different machines (with exact same system and OpenJDK versions though). One on 7.9.1, working fine, one on 7.9.2, having this exact issue reporting the unrecognized VM option.
FYI I’m hitting this on OpenJDK 11 now:
Sep 26 04:10:48 instance systemd[1]: Starting Elasticsearch...
Sep 26 04:10:49 instance systemd-entrypoint[4660]: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
Sep 26 04:10:49 instance systemd-entrypoint[4660]: output:
Sep 26 04:10:49 instance systemd-entrypoint[4660]: error:
Sep 26 04:10:49 instance systemd-entrypoint[4660]: Unrecognized VM option 'UseConcMarkSweepGC'
Sep 26 04:10:49 instance systemd-entrypoint[4660]: Error: Could not create the Java Virtual Machine.
Sep 26 04:10:49 instance systemd-entrypoint[4660]: Error: A fatal exception has occurred. Program will exit.
Sep 26 04:10:49 instance systemd-entrypoint[4660]: at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:126)
Sep 26 04:10:49 instance systemd-entrypoint[4660]: at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:88)
Sep 26 04:10:49 instance systemd-entrypoint[4660]: at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
Sep 26 04:10:49 instance systemd-entrypoint[4660]: at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
Sep 26 04:10:49 instance systemd-entrypoint[4660]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
Sep 26 04:10:49 instance systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 26 04:10:49 instance systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Everything was working fine on new builds (executed weekly) until yesterday.
Related: #62716
I commented this GC configuration directives in «/etc/elasticsearch/jvm.options» and it works for me but I am not sure if this is the right thing to do.
GC configuration
#-XX:+UseConcMarkSweepGC
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnly
ES version:
{
«name» : ««,
«cluster_name» : ««,
«cluster_uuid» : «*****»,
«version» : {
«number» : «7.9.2»,
«build_flavor» : «default»,
«build_type» : «rpm»,
«build_hash» : «d34da0ea4a966c4e49417f2da2f244e3e97b4e6e»,
«build_date» : «2020-09-23T00:45:33.626720Z»,
«build_snapshot» : false,
«lucene_version» : «8.6.2»,
«minimum_wire_compatibility_version» : «6.8.0»,
«minimum_index_compatibility_version» : «6.0.0-beta1»
},
«tagline» : «You Know, for Search»
}
Java version:
openjdk 11.0.8 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)
Did the same it works, but I’m not that confident. Here my java version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
Same here. Updated my CentOS 7 server today and ran into the same issue. Tip from @ahantoiu worked for me as well.
My system:
[root@host elasticsearch]# rpm -qa |grep -E "openjdk|elastic"
java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64
elasticsearch-7.9.2-1.x86_64
java-1.8.0-openjdk-headless-1.8.0.262.b10-0.el7_8.x86_64
I encountered the same problem (CentOS 7, elasticsearch 7.9.2). I made some research and found this elastic-disscusion.
I replaced:
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
with
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly
in my jvm.options file. After that, elastic-service ist starting without problems. In Elastic 7.9.2 the bundled JDK was upgraded to version 15. You can see this in the Pull-Request linked to the discussion link. Hope this helps.
odoobiz, JochenFromm, rezwyi, AnonymouspaperForSubmission, and k4mrul reacted with hooray emoji
rezwyi, AnonymouspaperForSubmission, and k4mrul reacted with rocket emoji
I commented this GC configuration directives in «/etc/elasticsearch/jvm.options» and it works for me but I am not sure if this is the right thing to do.
GC configuration
#-XX:+UseConcMarkSweepGC
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnlyES version:
{
«name» : ««, «cluster_name» : ««,
«cluster_uuid» : «*****»,
«version» : {
«number» : «7.9.2»,
«build_flavor» : «default»,
«build_type» : «rpm»,
«build_hash» : «d34da0ea4a966c4e49417f2da2f244e3e97b4e6e»,
«build_date» : «2020-09-23T00:45:33.626720Z»,
«build_snapshot» : false,
«lucene_version» : «8.6.2»,
«minimum_wire_compatibility_version» : «6.8.0»,
«minimum_index_compatibility_version» : «6.0.0-beta1»
},
«tagline» : «You Know, for Search»
}Java version:
openjdk 11.0.8 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)
Just had to do the same, has anyone run into problems yet?
Same issue.
CentOS 7
/usr/share/elasticsearch/jdk/bin/java -version :
openjdk version «14.0.1» 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
I downgraded to 7.9.1 to solve the issue.
Why issue has been closed ?
also having this issue after doing a yum update
openjdk version «15» 2020-09-15
OpenJDK Runtime Environment AdoptOpenJDK (build 15+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15+36, mixed mode, sharing)
commented the lines in /etc/elasticsearch/jvm.options out and it starts now.
not sure why this issue is closed
Elasticsearch ships a JVM options file. We might update this between releases. If you bring along your old one and don’t merge it properly with the new one we ship, then you might have options in there from an older version of the JVM that are no longer supported on newer versions of the JVM. We haven’t shipped with this flag in our default options file since 7.7.0, and it’s not in the packages we are shipping now. If it’s in your options file, you need to remove it, we can’t do it for you.
I encountered the same problem (CentOS 7, elasticsearch 7.9.2). I made some research and found this elastic-disscusion.
I replaced:-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly
with
8-13:-XX:+UseConcMarkSweepGC 8-13:-XX:CMSInitiatingOccupancyFraction=75 8-13:-XX:+UseCMSInitiatingOccupancyOnly
in my jvm.options file. After that, elastic-service ist starting without problems. In Elastic 7.9.2 the bundled JDK was upgraded to version 15. You can see this in the Pull-Request linked to the discussion link. Hope this helps.
@abcqwertz
This worked for me!
Thank you!
my environment:
java-1.8.0-openjdk-headless-1.8.0.272.b10-1.el7_9.x86_64
java-1.8.0-openjdk-1.8.0.272.b10-1.el7_9.x86_64
elasticsearch-7.10.0-1.x86_64
Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to run the simple sample project and I am facing the following error Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine in Java. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
Contents
- How Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error Occurs ?
- How To Solve Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error?
- Solution 1: ignore unsupported VM options
- Solution 2: Use Java 8 Or Java 11
- Summery
I am just trying to run the simple sample project and I am facing the following error.
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Process finished with exit code 1
How To Solve Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error?
- How To Solve Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error?
To Solve Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error Just Try to ignore unsupported VM options: -XX:+IgnoreUnrecognizedVMOptions and the second one is The problem is Codename One only supports Java 8 and Java 11 (at this time) so you should use one of those versions at the moment
- Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine
To Solve Unrecognized VM option ‘UseConcMarkSweepGC’ Error: Could not create the Java Virtual Machine Error Just Try to ignore unsupported VM options: -XX:+IgnoreUnrecognizedVMOptions and the second one is The problem is Codename One only supports Java 8 and Java 11 (at this time) so you should use one of those versions at the moment
Solution 1: ignore unsupported VM options
Just Try ignore unsupported VM options: -XX:+IgnoreUnrecognizedVMOptions
Solution 2: Use Java 8 Or Java 11
The problem is Codename One only supports Java 8 and Java 11 (at this time) so you should use one of those versions at the moment
Summery
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- SyntaxError: invalid syntax to repo init in the AOSP code.
I installed Intellij IDEA from on my arch using yay
. I worked fine but recently it started doing this:
john@arch-thinkpad ~ [1]> intellij-idea-ultimate-edition
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
How can I fix this problem so I can run intellij IDEA normaly like in good old times ?
Thank you for help
asked Jan 12, 2021 at 13:43
You can switch to java-11. Intellij calls the vm with an option that is no longer supported by java 15.
If you start Intellij via terminal (and java 11) it shows you that message:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
For now this workaround works. Remember to change the Java version in arch with archlinux-java.
Install java 11:
$sudo pacman -S jdk11-openjdk
Switch to java 11:
$sudo archlinux-java set java-11-openjdk
Jan Černý
1,0412 gold badges20 silver badges42 bronze badges
answered Jan 12, 2021 at 15:45
1
Alternatively you can remove that option and use it with the latest JDK.
In /opt/clion/bin/clion64.vmoptions
, comment out / delete the following line
-XX:+UseConcMarkSweepGC
answered Mar 20, 2021 at 17:40
Uzumaki D. Ichigo’s suggestion does not involves changing the JDK.
However the «idea.vmoptions» file in the /bin directory is overwritten when idea runs.
JVM options must be changed in the file with the same name, but in the configuration directory as JetBrains documentation states.
This can be done following the instructions in the official documentation for idea and clion:
Configuration directory
Syntax ~/.config/JetBrains/
Example
~/.config/JetBrains/IntelliJIdea2020.3
It is not needed to cut the line.
It can be just commented out:
#-XX:+UseConcMarkSweepGC
Glorfindel
7871 gold badge9 silver badges19 bronze badges
answered Mar 22, 2021 at 9:19
1
- #2
При запуске сервера вижу данную ошибку
Starting GameServer.
Unrecognized VM option ‘UseConcMarkSweepGC’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.Server terminated abnormaly …
Server terminated …Убираю этот параметр с .bat, вижу следующую ошибку
Starting GameServer.
[20:18:18] INFO =================================================
[20:18:18] INFO Project Revision: …….. L2s [44211]
[20:18:18] INFO Build Revision: ………. ${build.revision}
[20:18:18] INFO Update: ……………… The Homunculus
[20:18:18] INFO Build date: ………….. 2020.10.27 22:13
[20:18:18] INFO Compiler version: …….. 1.8.0_241-b07 (Oracle Corporation)
[20:18:18] INFO =================================================
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Authserver host info: IP[127.0.0.1], PORT[9014]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Gameserver host info:
[20:18:18] INFO HostsConfigHolder: ID[1], ADDRESS[127.0.0.1], PORT[7777]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO Abuse: Loaded 18 abuse words.
[20:18:19] INFO =================================================
[20:18:19] INFO Licensed host: 127.0.0.1
[20:18:19] INFO Licensed online limit: UNLIMITED
[20:18:19] INFO =================================================
[20:18:19] INFO UpdatesInstaller: Checking new updates…
[20:18:19] INFO UpdatesInstaller: No new updates.
[20:18:19] INFO IdFactory: Clear characters online status.
[20:18:20] INFO IdFactory: Cleaned 0 elements from database in 0sec.
[20:18:20] INFO IdFactory: Extracted total 0 used id’s.
[20:18:20] INFO IdFactory: 102912 id’s available.
[20:18:20] INFO Hidden items loaded size: 0
[20:18:20] INFO CustomHeroDAO: loaded 0 custom heroes.
[20:18:20] INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:18:20] INFO Scripts: Loading…
Exception in thread «main» java.lang.Error: Failed loading scripts!
at l2s.gameserver.scripts.Scripts.load(Scripts.java:87)
at l2s.gameserver.scripts.Scripts.<init>(Scripts.java:72)
at l2s.gameserver.scripts.Scripts.<clinit>(Scripts.java:59)
at l2s.gameserver.GameServer.<init>(GameServer.java:323)
at l2s.gameserver.GameServer.main(GameServer.java:597)Логин запускается без проблем!
Ява 1.8
Сборка l2-Scripts Homunculus Part 1
liberica 8 стартует без бед
Код:
Starting GameServer.
[20:46:58] INFO =================================================
[20:46:58] INFO Project Revision: ........ L2s [44211]
[20:46:58] INFO Build Revision: .......... ${build.revision}
[20:46:58] INFO Update: .................. The Homunculus
[20:46:58] INFO Build date: .............. 2020.10.27 22:13
[20:46:58] INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation)
[20:46:58] INFO =================================================
[20:46:59] INFO HostsConfigHolder: =================================================
[20:46:59] INFO HostsConfigHolder: Authserver host info: IP[], PORT[9014]
[20:46:59] INFO HostsConfigHolder: =================================================
[20:46:59] INFO HostsConfigHolder: Gameserver host info:
[20:46:59] INFO HostsConfigHolder: ID[2], ADDRESS[], PORT[8888]
[20:46:59] INFO HostsConfigHolder: =================================================
[20:46:59] INFO Abuse: Loaded 18 abuse words.
[20:46:59] INFO =================================================
[20:46:59] INFO Licensed host: 127.0.0.1
[20:46:59] INFO Licensed online limit: UNLIMITED
[20:46:59] INFO =================================================
[20:46:59] INFO UpdatesInstaller: Checking new updates...
[20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_06 13-33...
[20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_06 13-33
[20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_06 19-14...
[20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_06 19-14
[20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_07 17-20...
[20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_07 17-20
[20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_20 21-34...
[20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_20 21-34
[20:46:59] INFO UpdatesInstaller: All new updates installed.
[20:46:59] INFO IdFactory: Clear characters online status.
[20:46:59] INFO IdFactory: Cleaned 8 elements from database in 0sec.
[20:46:59] INFO IdFactory: Extracted total 0 used id's.
[20:46:59] INFO IdFactory: 102912 id's available.
[20:47:00] INFO Hidden items loaded size: 0
[20:47:00] INFO CustomHeroDAO: loaded 0 custom heroes.
[20:47:00] INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:47:00] INFO Scripts: Loading...
[20:47:06] INFO Scripts: Loaded 1001 classes.
[20:47:06] INFO GeoEngine: Disabled.
[20:47:06] INFO Loaded 418 translit entries.
[20:47:06] INFO GameTimeController: initialized. Current time is 10:42 in the day.
[20:47:06] INFO World: Creating regions: [256][272][32].
[20:47:06] INFO HtmCache: Loading HTML's...
[20:47:07] INFO StringsHolder: load strings: 685 for lang: RUSSIAN
[20:47:07] INFO StringsHolder: load strings: 686 for lang: ENGLISH
[20:47:07] INFO ItemNameHolder: load item names: 44936 for lang: RUSSIAN
[20:47:07] INFO ItemNameHolder: load item names: 44936 for lang: ENGLISH
[20:47:07] INFO NpcNameHolder: load npc names: 14126 for lang: RUSSIAN
[20:47:07] INFO NpcNameHolder: load npc names: 14126 for lang: ENGLISH
[20:47:07] INFO NpcStringHolder: load npc strings: 15014 for lang: RUSSIAN
[20:47:07] INFO NpcStringHolder: load npc strings: 15014 for lang: ENGLISH
[20:47:08] INFO SkillNameHolder: load skill names: 157758 for lang: RUSSIAN
[20:47:08] INFO SkillNameHolder: load skill names: 157758 for lang: ENGLISH
[20:47:08] INFO SkillEnchantInfoHolder: loaded 20 skill enchant info(s) count.
...
[20:47:35] INFO Maximum Numbers of Connected Players: 3000
[20:47:35] INFO GameBanManager: Initialized.
[20:47:35] INFO Restoring offline traders...
[20:47:35] INFO Restored 0 offline traders.
[20:47:35] INFO Connecting to authserver on :9014
[20:47:35] INFO SpawnManager: spawned 296 npc; spawns: 259; group: DAY
[20:47:35] INFO Telnet server is currently disabled.
[20:47:35] INFO =================================================
[20:47:35] INFO AllowedMemory: ........... 16666496 KB
[20:47:35] INFO Allocated: .......... 16666496 KB (100.0%)
[20:47:35] INFO Non-Allocated: ...... 0 KB (0.0%)
[20:47:35] INFO AllocatedMemory: ......... 16666496 KB
[20:47:35] INFO Used: ............... 2609775 KB (15.6588%)
[20:47:35] INFO Unused (cached): .... 14056720 KB (84.3412%)
[20:47:35] INFO UseableMemory: ........... 14056720 KB (84.3412%)
[20:47:35] INFO =================================================
[20:47:35] INFO Loaded Event: Viktorina
[20:47:35] INFO Loaded Event: Trivia
[20:47:36] INFO ImagesCache: Loaded 305 images
[20:47:40] ERROR AuthServer I/O error: Connection timeout.
[20:47:40] INFO Start Viktorina: Wed Aug 17 12:00:00 EEST 2022
[20:47:40] INFO Stop Viktorina: Wed Aug 17 14:00:00 EEST 2022
[20:47:40] INFO Loaded Event: Trivia - Next Start: Wed Aug 17 18:00:00 EEST 2022
- #3
Код:
-XX:+IgnoreUnrecognizedVMOptions
òbi
-Wan Kenobi
- #4
[20:18:20] INFO Scripts: Loading…
Exception in thread «main» java.lang.Error: Failed loading scripts!
Java:
_log.info("Scripts: Loading...");
List<Class<?>> classes = load(new File(Config.DATAPACK_ROOT, "data/scripts"));
if (classes.isEmpty())
throw new Error("Failed loading scripts!");
Разбирайтесь, по какой причине на пути /data/scripts не было загружено не одного файла (*.java)
- #5
liberica 8 стартует без бед
Код:
Starting GameServer. [20:46:58] INFO ================================================= [20:46:58] INFO Project Revision: ........ L2s [44211] [20:46:58] INFO Build Revision: .......... ${build.revision} [20:46:58] INFO Update: .................. The Homunculus [20:46:58] INFO Build date: .............. 2020.10.27 22:13 [20:46:58] INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation) [20:46:58] INFO ================================================= [20:46:59] INFO HostsConfigHolder: ================================================= [20:46:59] INFO HostsConfigHolder: Authserver host info: IP[], PORT[9014] [20:46:59] INFO HostsConfigHolder: ================================================= [20:46:59] INFO HostsConfigHolder: Gameserver host info: [20:46:59] INFO HostsConfigHolder: ID[2], ADDRESS[], PORT[8888] [20:46:59] INFO HostsConfigHolder: ================================================= [20:46:59] INFO Abuse: Loaded 18 abuse words. [20:46:59] INFO ================================================= [20:46:59] INFO Licensed host: 127.0.0.1 [20:46:59] INFO Licensed online limit: UNLIMITED [20:46:59] INFO ================================================= [20:46:59] INFO UpdatesInstaller: Checking new updates... [20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_06 13-33... [20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_06 13-33 [20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_06 19-14... [20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_06 19-14 [20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_07 17-20... [20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_07 17-20 [20:46:59] INFO UpdatesInstaller: Installing update: 2020_07_20 21-34... [20:46:59] INFO UpdatesInstaller: Installed update: 2020_07_20 21-34 [20:46:59] INFO UpdatesInstaller: All new updates installed. [20:46:59] INFO IdFactory: Clear characters online status. [20:46:59] INFO IdFactory: Cleaned 8 elements from database in 0sec. [20:46:59] INFO IdFactory: Extracted total 0 used id's. [20:46:59] INFO IdFactory: 102912 id's available. [20:47:00] INFO Hidden items loaded size: 0 [20:47:00] INFO CustomHeroDAO: loaded 0 custom heroes. [20:47:00] INFO HWIDBan: Black list (Hwid) loaded size: 0 [20:47:00] INFO Scripts: Loading... [20:47:06] INFO Scripts: Loaded 1001 classes. [20:47:06] INFO GeoEngine: Disabled. [20:47:06] INFO Loaded 418 translit entries. [20:47:06] INFO GameTimeController: initialized. Current time is 10:42 in the day. [20:47:06] INFO World: Creating regions: [256][272][32]. [20:47:06] INFO HtmCache: Loading HTML's... [20:47:07] INFO StringsHolder: load strings: 685 for lang: RUSSIAN [20:47:07] INFO StringsHolder: load strings: 686 for lang: ENGLISH [20:47:07] INFO ItemNameHolder: load item names: 44936 for lang: RUSSIAN [20:47:07] INFO ItemNameHolder: load item names: 44936 for lang: ENGLISH [20:47:07] INFO NpcNameHolder: load npc names: 14126 for lang: RUSSIAN [20:47:07] INFO NpcNameHolder: load npc names: 14126 for lang: ENGLISH [20:47:07] INFO NpcStringHolder: load npc strings: 15014 for lang: RUSSIAN [20:47:07] INFO NpcStringHolder: load npc strings: 15014 for lang: ENGLISH [20:47:08] INFO SkillNameHolder: load skill names: 157758 for lang: RUSSIAN [20:47:08] INFO SkillNameHolder: load skill names: 157758 for lang: ENGLISH [20:47:08] INFO SkillEnchantInfoHolder: loaded 20 skill enchant info(s) count. ... [20:47:35] INFO Maximum Numbers of Connected Players: 3000 [20:47:35] INFO GameBanManager: Initialized. [20:47:35] INFO Restoring offline traders... [20:47:35] INFO Restored 0 offline traders. [20:47:35] INFO Connecting to authserver on :9014 [20:47:35] INFO SpawnManager: spawned 296 npc; spawns: 259; group: DAY [20:47:35] INFO Telnet server is currently disabled. [20:47:35] INFO ================================================= [20:47:35] INFO AllowedMemory: ........... 16666496 KB [20:47:35] INFO Allocated: .......... 16666496 KB (100.0%) [20:47:35] INFO Non-Allocated: ...... 0 KB (0.0%) [20:47:35] INFO AllocatedMemory: ......... 16666496 KB [20:47:35] INFO Used: ............... 2609775 KB (15.6588%) [20:47:35] INFO Unused (cached): .... 14056720 KB (84.3412%) [20:47:35] INFO UseableMemory: ........... 14056720 KB (84.3412%) [20:47:35] INFO ================================================= [20:47:35] INFO Loaded Event: Viktorina [20:47:35] INFO Loaded Event: Trivia [20:47:36] INFO ImagesCache: Loaded 305 images [20:47:40] ERROR AuthServer I/O error: Connection timeout. [20:47:40] INFO Start Viktorina: Wed Aug 17 12:00:00 EEST 2022 [20:47:40] INFO Stop Viktorina: Wed Aug 17 14:00:00 EEST 2022 [20:47:40] INFO Loaded Event: Trivia - Next Start: Wed Aug 17 18:00:00 EEST 2022
Попробовал на Liberica 8, проблема со скриптами(
Код:
-XX:+IgnoreUnrecognizedVMOptions
Помогло! Спасибо, но проблема со скриптами осталась(
Java:
_log.info("Scripts: Loading..."); List<Class<?>> classes = load(new File(Config.DATAPACK_ROOT, "data/scripts")); if (classes.isEmpty()) throw new Error("Failed loading scripts!");
Разбирайтесь, по какой причине на пути /data/scripts не было загружено не одного файла (*.java)
Вряд ли без исходников можно копать в эту сторону, или я не прав?
òbi
-Wan Kenobi
- #6
Вряд ли без исходников можно копать в эту сторону, или я не прав?
проблема скорее всего в именах папок на пути к сборке
- #7
проблема скорее всего в именах папок на пути к сборке
Использую только англ. символы в путях. Попробую перекинуть в корень диска.
- #8
Попробуйте это в DATA запихнуть.
Тут правда мои свистоперделки присутсвуют, но они чисто чтоб админка была понятнее и хотя-бы работала
-
scripts.7z
418,7 КБ · Просмотры: 8
- #9
Попробуйте это в DATA запихнуть.
Тут правда мои свистоперделки присутсвуют, но они чисто чтоб админка была понятнее и хотя-бы работала
Не помогло (
Распаковал заново и перекачал с форума сборку, итог тот же(
- #10
Не помогло (
Распаковал заново и перекачал с форума сборку, итог тот же(
может много подпапочек ?
попробуйте в корень поменситить и запустить ради прикола
- #11
может много подпапочек ?
попробуйте в корень поменситить и запустить ради прикола
Закинул в диск C, в корень. Не помогло(
может много подпапочек ?
попробуйте в корень поменситить и запустить ради прикола
Можно попросить вас скинуть сборку, с которой вы смогли запуститься?
Если она, конечно, без доработок и в бесплатном доступе.
òbi
-Wan Kenobi
- #12
Закинул в диск C, в корень. Не помогло(
в server.properties не меняли значения переменной DatapackRoot?
должно быть так
Код:
# Директорий датапака
DatapackRoot = .
- #13
# Директорий датапака
DatapackRoot = .
Все стоит по стандарту, я изменил только данные для подключения к БД. Больше в сборке ничего не трогал
òbi
-Wan Kenobi
- #14
# Директорий датапака
DatapackRoot = .
Все стоит по стандарту, я изменил только данные для подключения к БД. Больше в сборке ничего не трогал
файл server.properties находится в /gameserver/config/ или /gameserver/config/default/ ?
- #15
файл server.properties находится в /gameserver/config/ или /gameserver/config/default/ ?
если бы было, то сначало бы ошибка БД вылетела…
- #16
файл server.properties находится в /gameserver/config/ или /gameserver/config/default/ ?
И там и там. Скопировал файлы из папки default
- #17
Ради интереса, попробуйте вот такой BAT
Bash:
@echo off
title L2-Scripts (The Homunculus)
:start
echo Starting GameServer.
echo.
"C:Program FilesBellSoftLibericaJDK-8-fullbinjava" -server -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -cp config;./lib/* l2s.gameserver.GameServer
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Server restarted ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly ...
echo.
:end
echo.
echo Server terminated ...
echo.
pause
òbi
-Wan Kenobi
- #18
если бы было, то сначало бы ошибка БД вылетела…
ну вообще да, но спросил на всякий
- #19
Ради интереса, попробуйте вот такой BAT
Bash:
@echo off title L2-Scripts (The Homunculus) :start echo Starting GameServer. echo. "C:Program FilesBellSoftLibericaJDK-8-fullbinjava" -server -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -cp config;./lib/* l2s.gameserver.GameServer if ERRORLEVEL 2 goto restart if ERRORLEVEL 1 goto error goto end :restart echo. echo Server restarted ... echo. goto start :error echo. echo Server terminated abnormaly ... echo. :end echo. echo Server terminated ... echo. pause
«»C:Program FilesBellSoftLibericaJDK-8bin»» не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
И да, путь указал к своей яве.
- #20
«»C:Program FilesBellSoftLibericaJDK-8bin»» не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
И да, путь указал к своей яве.
в конце java допишите
Trying to install Minecraft on 18.04 and I get the following error.
OpenJDK 64-Bit Server VM warning:
Option UseConcMarkSweepGC was deprecated in version 9.0
and will likely be removed in a future release.
Unrecognized VM option 'CMSIncrementalMode'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Any suggestions?
Zanna♦
68.3k55 gold badges210 silver badges320 bronze badges
asked Apr 27, 2018 at 3:20
I edited my profile. I changed the JVM Arguments from
-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
to
-Xmx1G -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -Xmn128M
Then Minecraft worked for me.
(I got the Idea from: JVM errors when running minecraft)
answered May 7, 2018 at 19:50
Boba FitBoba Fit
1,55413 silver badges25 bronze badges
Replace openjdk-jre-11 with openjdk-jre-8. Minecraft will not run on newer java versions.
answered Apr 30, 2018 at 18:29
5
Install MC Installer —
sudo snap install mc-installer
No need to go through JDK/JVM hassle.
answered May 2, 2018 at 19:30
just delete all Unrecognized VM options from the JVM Arguments… worked for me
answered Jun 10, 2021 at 11:58
4