Jump to content
Sign in to follow this  
Zjablik

Не получается запустить гейм сервер

Recommended Posts

Доброго времени суток! Все сделал по видео уроку, но выдает ошибку:

 could not reserve enough space for 1433600KB object heap

Подскажите пожалуйста где и что надо сделать .

Заранее спасибо!

Share this post


Link to post
Реклама

Добрый вечер,

Установите java x64, увеличьте выделенную память в батнике гейм сервера.

Share this post


Link to post

Спасибо, помогло. Но теперь где надо выбирать сервер, пустое окно. 

Share this post


Link to post

 Теперь выдает такую ошибку:

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)

Share this post


Link to post

Удалите java x86.

Примечание:

Редактируйте файлы через notepad++, если вы редактировали через блокнот, залейте файлы с архива которые редактировали блокнотом и отредактируйте их notepad++.

Share this post


Link to post

Добрый день. Удалил 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 ...

Для продолжения нажмите любую клавишу . . .

Share this post


Link to post

Переменные среды > Path - измените путь на java x64

Share this post


Link to post
13 часов назад, VLemon сказал:

Переменные среды > Path - измените путь на java x64

Спасибо! 

Share this post


Link to post

Теперь выдает такую ошибку ((((

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

Share this post


Link to post

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

Share this post


Link to post

Обратно не хватка памяти, в батнике гейм сервера укажите -Xmx3000m

Share this post


Link to post

Спасибо!!! Вы мне очень помогли, все за работало!!!

Share this post


Link to post
1 час назад, Zjablik сказал:

Спасибо!!! Вы мне очень помогли, все за работало!!!

Не за что.

Share this post


Link to post

1) Ещё такой вопросик: как дать админку? В папке GMAccess ввожу id персонажа, но при входе в игру ни на одну команду gm не реагирует.

<PlayerID set="268437064"/>---- id персонажа
        <!-- По умолчанию FALSE для всех игроков -->
        <IsGM set="false"/>
        <!-- разрешает использование амин команд. -->
        <CanUseGMCommand set="true"/>

2) У меня дома 2 ноутбука, чтобы поиграть и на втором надо ли прописывать ip? если да: то какой и куда? 

Заранее спасибо!!!

Share this post


Link to post

Для начала нужно отключить в конфиге гейм сервера EverybodyHasAdminRights = False.

Затем просто указать id персонажа.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...