Zjablik 0 Posted April 5, 2020 Доброго времени суток! Все сделал по видео уроку, но выдает ошибку: could not reserve enough space for 1433600KB object heap Подскажите пожалуйста где и что надо сделать . Заранее спасибо! Quote Share this post Link to post
Monche 132 Posted April 5, 2020 Добрый вечер, Установите java x64, увеличьте выделенную память в батнике гейм сервера. Quote Share this post Link to post
Zjablik 0 Posted April 5, 2020 Спасибо, помогло. Но теперь где надо выбирать сервер, пустое окно. Quote Share this post Link to post
Zjablik 0 Posted April 5, 2020 Теперь выдает такую ошибку: 05.04 23:01:35 INFO ZoneHolder: loaded 1375 zone(s) count. 05.04 23:01:47 WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gameServer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$e5a5ea57]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space 05.04 23:01:48 INFO Closing JPA EntityManagerFactory for persistence unit 'default' 05.04 23:01:50 INFO Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug) 05.04 23:01:50 ERROR Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gameServer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$e5a5ea57]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) at studio.lineage2.gameserver.GameServer.main(GameServer.java:421) Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$e5a5ea57]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1098) ... 16 common frames omitted Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Unknown Source) at java.lang.String.<init>(Unknown Source) at org.dom4j.io.SAXContentHandler.characters(SAXContentHandler.java:299) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at studio.lineage2.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:31) at studio.lineage2.commons.data.xml.AbstractDirParser.parseDir(AbstractDirParser.java:63) at studio.lineage2.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:33) at studio.lineage2.commons.data.xml.AbstractParser.load(AbstractParser.java:55) at studio.lineage2.gameserver.data.xml.Parsers.parseAll(Parsers.java:102) at studio.lineage2.gameserver.GameServer.<init>(GameServer.java:193) at studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$e5a5ea57.<init>(<generated>) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1098) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Quote Share this post Link to post
Monche 132 Posted April 5, 2020 Удалите java x86. Примечание: Редактируйте файлы через notepad++, если вы редактировали через блокнот, залейте файлы с архива которые редактировали блокнотом и отредактируйте их notepad++. Quote Share this post Link to post
Zjablik 0 Posted April 6, 2020 Добрый день. Удалил Java х86, скачал х64. Выдает такую ошибку: Starting AuthServer. Error: could not open `C:\Program Files (x86)\Java\jre1.8.0_241\lib\i386\jvm.cfg' Server terminated abnormaly ... Server terminated ... Для продолжения нажмите любую клавишу . . . Quote Share this post Link to post
Monche 132 Posted April 6, 2020 Переменные среды > Path - измените путь на java x64 Quote Share this post Link to post
Zjablik 0 Posted April 7, 2020 13 часов назад, VLemon сказал: Переменные среды > Path - измените путь на java x64 Спасибо! Quote Share this post Link to post
Zjablik 0 Posted April 7, 2020 Теперь выдает такую ошибку (((( 07.04 08:43:44 INFO Loaded Event: Bounty Hunters Guild 07.04 08:43:44 INFO Loaded Event: L2 Medal Collection Event [state: deactivated] 07.04 08:43:44 INFO Loaded Event: Change of Heart[state: deactivated] Exception in thread "GeneralSTPool-10" java.lang.OutOfMemoryError: GC overhead limit exceeded at studio.lineage2.gameserver.model.Creature.calcStat(Creature.java:1266) at studio.lineage2.gameserver.model.Creature.getPCriticalHit(Creature.java:2437) at studio.lineage2.gameserver.model.actor.recorder.CharStatsChangeRecorder.refreshStats(CharStatsChangeRecorder.java:122) at studio.lineage2.gameserver.model.actor.recorder.CharStatsChangeRecorder.sendChanges(CharStatsChangeRecorder.java:151) at studio.lineage2.gameserver.model.Creature.sendChanges(Creature.java:6353) at studio.lineage2.gameserver.model.instances.NpcInstance.sendChanges(NpcInstance.java:906) at studio.lineage2.gameserver.model.Creature.updateStats(Creature.java:6491) at studio.lineage2.gameserver.model.Creature.onSpawn(Creature.java:6572) at studio.lineage2.gameserver.model.instances.NpcInstance.onSpawn(NpcInstance.java:643) at studio.lineage2.gameserver.model.GameObject.spawn0(GameObject.java:248) at studio.lineage2.gameserver.model.GameObject.spawnMe0(GameObject.java:228) at studio.lineage2.gameserver.model.GameObject.spawnMe(GameObject.java:219) at studio.lineage2.gameserver.model.Creature.spawnMe(Creature.java:6583) at studio.lineage2.gameserver.model.instances.NpcInstance.spawnMinion(NpcInstance.java:535) at studio.lineage2.gameserver.model.MinionList.spawnMinion(MinionList.java:179) at studio.lineage2.gameserver.model.MinionList.spawnMinions(MinionList.java:140) at studio.lineage2.gameserver.model.MinionList.runImpl(MinionList.java:41) at studio.lineage2.commons.threading.RunnableImpl.run(RunnableImpl.java:21) at studio.lineage2.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:36) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception in thread "GeneralSTPool-4" java.lang.OutOfMemoryError: GC overhead limit exceeded Quote Share this post Link to post
Zjablik 0 Posted April 7, 2020 Exception in thread "GeneralSTPool-4" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "GeneralSTPool-2" Exception in thread "GeneralSTPool-16" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "GeneralSTPool-12" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "GeneralSTPool-14" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "GeneralSTPool-6" java.lang.OutOfMemoryError: GC overhead limit exceeded Quote Share this post Link to post
Monche 132 Posted April 7, 2020 Обратно не хватка памяти, в батнике гейм сервера укажите -Xmx3000m Quote Share this post Link to post
Zjablik 0 Posted April 7, 2020 Спасибо!!! Вы мне очень помогли, все за работало!!! Quote Share this post Link to post
Monche 132 Posted April 7, 2020 1 час назад, Zjablik сказал: Спасибо!!! Вы мне очень помогли, все за работало!!! Не за что. Quote Share this post Link to post
Zjablik 0 Posted April 7, 2020 1) Ещё такой вопросик: как дать админку? В папке GMAccess ввожу id персонажа, но при входе в игру ни на одну команду gm не реагирует. <PlayerID set="268437064"/>---- id персонажа <!-- По умолчанию FALSE для всех игроков --> <IsGM set="false"/> <!-- разрешает использование амин команд. --> <CanUseGMCommand set="true"/> 2) У меня дома 2 ноутбука, чтобы поиграть и на втором надо ли прописывать ip? если да: то какой и куда? Заранее спасибо!!! Quote Share this post Link to post
Monche 132 Posted April 7, 2020 Для начала нужно отключить в конфиге гейм сервера EverybodyHasAdminRights = False. Затем просто указать id персонажа. Quote Share this post Link to post