При запуске гс выдает ошибку..
Starting L2Connections Project Core Server
16:35:50.779 Loading configs.
16:35:50.875 Gameserver Version: ${l2p.revision}, build date: 2011.10.05 13:34
16:35:50.876 Loading ./config/server.properties
16:35:50.891 Loading ./config/GMAccess.xml
16:35:50.940 Loading ./config/ai.properties
16:35:50.941 Loading ./config/altsettings.properties
16:35:50.945 Loading ./config/events.properties
16:35:50.946 Loading ./config/geodata.properties
16:35:50.950 Loading ./config/olympiad.properties
16:35:50.951 Loading ./config/other.properties
16:35:50.954 Loading ./config/communityboard.properties
16:35:50.957 Loading ./config/pvp.properties
16:35:50.959 Loading ./config/residence.properties
16:35:50.960 Loading ./config/services.properties
16:35:50.962 Loading ./config/ai.properties
16:35:50.963 Loading ./config/spoil.properties
16:35:50.964 Loading ./config/telnet.properties
16:35:50.965 Loading ./config/hexid.txt
16:35:50.971 Abuse: Loaded 18 abuse words.
659 [main] ERROR com.jolbox.bonecp.ConnectionHandle - Failed to acquire connecti
on. Sleeping for 100ms. Attempts left: 0
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data sourc
e rejected establishment of connection, message from server: "Too many connecti
ons"
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1116)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:230)
at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(Connectio
nHandle.java:197)
at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:154)
at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:315)
at com.jolbox.bonecp.BoneCPDataSource.maybeInit(BoneCPDataSource.java:12
7)
at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.jav
a:89)
at l2p.database.L2DatabaseFactory.<init>(L2DatabaseFactory.java:55)
at l2p.database.L2DatabaseFactory.<init>(L2DatabaseFactory.java:70)
at l2p.database.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:77)
at l2p.gameserver.GameServer.main(GameServer.java:285)
673 [boneCP-pool-watch-thread] ERROR com.jolbox.bonecp.ConnectionHandle - Failed
to acquire connection. Sleeping for 100ms. Attempts left: 0
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data sourc
e rejected establishment of connection, message from server: "Too many connecti
ons"
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1116)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:230)
at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(Connectio
nHandle.java:197)
at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:154)
at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.jav
a:121)
at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:102)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConn
ectionException: Data source rejected establishment of connection, message from
server: "Too many connections"
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1116)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:230)
at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(Connectio
nHandle.java:197)
at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:154)
at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:315)
at com.jolbox.bonecp.BoneCPDataSource.maybeInit(BoneCPDataSource.java:12
7)
at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.jav
a:89)
at l2p.database.L2DatabaseFactory.<init>(L2DatabaseFactory.java:55)
at l2p.database.L2DatabaseFactory.<init>(L2DatabaseFactory.java:70)
at l2p.database.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:77)
at l2p.gameserver.GameServer.main(GameServer.java:285)
886 [boneCP-pool-watch-thread] ERROR com.jolbox.bonecp.PoolWatchThread - Error i
n trying to obtain a connection. Retrying in 100ms
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data sourc
e rejected establishment of connection, message from server: "Too many connecti
ons"
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1116)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
371)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:230)
at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(Connectio
nHandle.java:197)
at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:154)
at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.jav
a:121)
at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:102)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Server terminated abnormaly
server terminated
Для продолжения нажмите любую клавишу . . .
Ошибка выбивается при запуске после ЛС.. если запускать только ГС то ошибки не будет, но потом ошибка будет в ЛС после запуска..
Я так думаю что ошибка заключается в ограниченном подключении к MySQL.
Если так подскажите как увеличить число коннектов.. если нет помогите разобраться в чем ошибка.