Mycat1.6启动报NumberFormatException解决方案

2016-11-12 18:28:27,094 [INFO ][main] sysconfig params:SystemConfig [processorBufferLocalPercent=100, frontSocketSoRcvbuf=1048576, frontSocketSoSndbuf=4194304, backSocketSoRcvbuf=4194304, backSocketSoSndbuf=1048576, frontSocketNoDelay=1, backSocketNoDelay=1, maxStringLiteralLength=65535, frontWriteQueueSize=2048, bindIp=0.0.0.0, serverPort=8066, managerPort=9066, charset=utf8, processors=4, processorExecutor=8, timerExecutor=2, managerExecutor=2, idleTimeout=1800000, catletClassCheckSeconds=60, sqlExecuteTimeout=300, processorCheckPeriod=1000, dataNodeIdleCheckPeriod=300000, dataNodeHeartbeatPeriod=10000, clusterHeartbeatUser=_HEARTBEAT_USER_, clusterHeartbeatPass=_HEARTBEAT_PASS_, clusterHeartbeatPeriod=5000, clusterHeartbeatTimeout=10000, clusterHeartbeatRetry=10, txIsolation=3, parserCommentVersion=50148, sqlRecordCount=10, bufferPoolPageSize=2097152, bufferPoolChunkSize=4096, bufferPoolPageNumber=80, maxResultSet=524288, bigResultSizeSqlCount=10, bufferUsagePercent=80, flowControlRejectStrategy=0, clearBigSqLResultSetMapMs=600000, defaultMaxLimit=100, sequnceHandlerType=2, sqlInterceptor=io.mycat.server.interceptor.impl.DefaultSqlInterceptor, sqlInterceptorType=select, sqlInterceptorFile=C:\Documents and Settings\Administrator\My Documents\Mycat-Server-1.6/logs/sql.txt, mutiNodeLimitType=0, mutiNodePatchSize=100, defaultSqlParser=druidparser, usingAIO=0, packetHeaderSize=4, maxPacketSize=16777216, mycatNodeId=1]  (io.mycat.MycatServer:MycatServer.java:290) 

2016-11-12 18:28:27,532 [INFO ][main] useOffHeapForMerge = 1  (io.mycat.memory.MyCatMemory:MyCatMemory.java:53) 

2016-11-12 18:28:27,532 [INFO ][main] memoryPageSize = 1m  (io.mycat.memory.MyCatMemory:MyCatMemory.java:54) 

2016-11-12 18:28:27,532 [INFO ][main] spillsFileBufferSize = 1k  (io.mycat.memory.MyCatMemory:MyCatMemory.java:55) 

2016-11-12 18:28:27,532 [INFO ][main] useStreamOutput = 0  (io.mycat.memory.MyCatMemory:MyCatMemory.java:56) 

2016-11-12 18:28:27,532 [INFO ][main] systemReserveMemorySize = 384m  (io.mycat.memory.MyCatMemory:MyCatMemory.java:57) 

2016-11-12 18:28:27,750 [INFO ][main] totalNetWorkBufferSize = 160MB  (io.mycat.memory.MyCatMemory:MyCatMemory.java:58) 

2016-11-12 18:28:27,750 [INFO ][main] dataNodeSortedTempDir = C:\Documents and Settings\Administrator\My Documents\Mycat-Server-1.6  (io.mycat.memory.MyCatMemory:MyCatMemory.java:59) 

2016-11-12 18:28:27,782 [INFO ][main] mycat.memory.offHeap.size: -53215232B  (io.mycat.memory.MyCatMemory:MyCatMemory.java:122) 

2016-11-12 18:28:27,829 [ERROR][main] 2016-11-12 18:28:27 startup error java.lang.NumberFormatException: Size must be specified as bytes (b), kibibytes (k), mebibytes (m), gibibytes (g), tebibytes (t), or pebibytes(p). E.g. 50b, 100k, or 250m.

Failed to parse byte string: -53215232B

at io.mycat.memory.unsafe.utils.JavaUtils.byteStringAs(JavaUtils.java:223)

at io.mycat.memory.unsafe.utils.JavaUtils.byteStringAsBytes(JavaUtils.java:234)

at io.mycat.memory.unsafe.utils.MycatPropertyConf.byteStringAsBytes(MycatPropertyConf.java:92)

at io.mycat.memory.unsafe.utils.MycatPropertyConf.getSizeAsBytes(MycatPropertyConf.java:50)

at io.mycat.memory.unsafe.memory.mm.MemoryManager.(MemoryManager.java:30)

at io.mycat.memory.unsafe.memory.mm.ResultMergeMemoryManager.(ResultMergeMemoryManager.java:15)

at io.mycat.memory.MyCatMemory.(MyCatMemory.java:126)

at io.mycat.MycatServer.startup(MycatServer.java:345)

at io.mycat.MycatStartup.main(MycatStartup.java:57)

 (io.mycat.MycatStartup:MycatStartup.java:62) 

 



 

 

错误解决方案:

解决方案:off heap for merge/order/group/limit      1开启   0关闭   --->修改配置文件值为: 0



 

 

你可能感兴趣的:(数据库-----MYSQL,Mycat中间件)