forum.bitel.ru http://forum.bitel.ru/ |
|
RadiusVoip 5.1 проблемы с mysql и памятью http://forum.bitel.ru/viewtopic.php?f=6&t=4537 |
Страница 1 из 1 |
Автор: | borisk [ 10 сен 2010, 18:11 ] |
Заголовок сообщения: | RadiusVoip 5.1 проблемы с mysql и памятью |
Добрый день! Собственно вот, RADIUS Voip 5.1. Буквально через несколько минут работы начинается: 09-10/18:03:29 ERROR [radiusListener-p-4-t-17] RadiusListenerWorker - Java heap space java.lang.OutOfMemoryError: Java heap space 09-10/18:03:29 ERROR [radiusListener-p-4-t-5] RadiusListenerWorker - Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2894) at java.lang.String.<init>(String.java:196) at com.mysql.jdbc.SingleByteCharsetConverter.toString(SingleByteCharsetConverter.java:327) at com.mysql.jdbc.ResultSetRow.getString(ResultSetRow.java:787) at com.mysql.jdbc.ByteArrayRow.getString(ByteArrayRow.java:67) at com.mysql.jdbc.ResultSetImpl.getIntWithOverflowCheck(ResultSetImpl.java:7125) at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2662) at org.apache.commons.dbcp.DelegatingResultSet.getInt(DelegatingResultSet.java:187) at ru.bitel.bgbilling.kernel.base.phone.server.bean.GeographicCodeManager.getTree(GeographicCodeManager.java:169) at bitel.billing.server.tariff.voice.calc.CodeFinder.load(CodeFinder.java:28) at bitel.billing.server.tariff.voice.calc.CodeFinder.<init>(CodeFinder.java:20) at bitel.billing.server.tariff.voice.calc.ZoneDestFinder.<init>(ZoneDestFinder.java:47) at bitel.billing.server.tariff.voice.calc.ZoneDestFinder.getZoneFinder(ZoneDestFinder.java:28) at bitel.billing.server.voiceip.bean.VoiceIpSession.calculate(VoiceIpSession.java:264) at bitel.billing.server.voiceip.bean.VoiceIpSession.calculate(VoiceIpSession.java:236) at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnectionImpl(VoiceIpNasConnection.java:81) at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnection(VoiceIpNasConnection.java:44) at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:956) at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:1) at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accountingRequest(RadiusProcessor.java:399) at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.run(RadiusListenerWorker.java:218) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40) Потом: 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - bitel.billing.common.BGException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 247185 ms ago. 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.kernel.base.phone.server.bean.GeographicCodeManager.getTree(GeographicCodeManager.java:190) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.tariff.voice.calc.CodeFinder.load(CodeFinder.java:28) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.tariff.voice.calc.CodeFinder.<init>(CodeFinder.java:20) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.tariff.voice.calc.ZoneDestFinder.<init>(ZoneDestFinder.java:47) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.tariff.voice.calc.ZoneDestFinder.getZoneFinder(ZoneDestFinder.java:28) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.voiceip.bean.VoiceIpSession.calculate(VoiceIpSession.java:264) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at bitel.billing.server.voiceip.bean.VoiceIpSession.calculate(VoiceIpSession.java:236) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnectionImpl(VoiceIpNasConnection.java:81) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpNasConnection.stopConnection(VoiceIpNasConnection.java:44) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:956) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.modules.voiceip.radius.VoiceIpRadiusProcessor.accounting(VoiceIpRadiusProcessor.java:1) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accountingRequest(RadiusProcessor.java:399) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.run(RadiusListenerWorker.java:218) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at java.lang.Thread.run(Thread.java:636) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 247185 ms ago. 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at java.lang.reflect.Constructor.newInstance(Constructor.java:532) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1645) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1401) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2840) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:468) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2534) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1749) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2159) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1761) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1912) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] LoggingPrintStream - at ru.bitel.bgbilling.kernel.base.phone.server.bean.GeographicCodeManager.getTree(GeographicCodeManager.java:159) 09-10/18:05:29 ERROR [radiusListener-p-4-t-30] Вот и хочется понять что же с ним такое происходит? |
Автор: | borisk [ 11 сен 2010, 17:35 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
Если я правильно понял, проблемы начинаются когда RADIUS пытается загрузить справочник географических кодов. Я свой справочник загрузил из файла, указанного в документации (codes_bg.txt), все там порядка 122 тысяч строк. Когда я очистил таблицу voiceip_geographic_code и внес туда для примера всего 5 кодов, радиус работает великолепно и на отсутствие памяти не ругается. |
Автор: | stark [ 20 сен 2010, 17:00 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
дайте ему больше памяти (параметр Xmx в скрипте запуска ) |
Автор: | borisk [ 20 сен 2010, 18:36 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
Ну то есть так и задумано что пол гига в данной ситуации ему мало? |
Автор: | stark [ 21 сен 2010, 20:42 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
borisk писал(а): Ну то есть так и задумано что пол гига в данной ситуации ему мало? Количество зависит от нагрузок , где то и 2 гига нужно .Попробуйте для начала увеличить .Возможно после старта он освободит память |
Автор: | Amir [ 26 сен 2010, 15:37 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
А билд последний? |
Автор: | borisk [ 28 сен 2010, 09:50 ] |
Заголовок сообщения: | Re: RadiusVoip 5.1 проблемы с mysql и памятью |
На тот момент был последний. Сейчас смотрю новее есть. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |