BiTel

Форум BiTel
bgbilling.ru     docs.bitel.ru     wiki.bitel.ru     dbinfo.bitel.ru     bgcrm.ru     billing.bitel.ru     bitel.ru    
Текущее время: 19 июн 2025, 13:40

Часовой пояс: UTC + 5 часов [ Летнее время ]




Начать новую тему Ответить на тему  [ Сообщений: 7 ] 
Автор Сообщение
 Заголовок сообщения: RadiusVoip 5.1 проблемы с mysql и памятью
СообщениеДобавлено: 10 сен 2010, 18:11 
Не в сети
Клиент

Зарегистрирован: 15 мар 2009, 14:04
Сообщения: 1337
Карма: 12
Добрый день!

Собственно вот, 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]


Вот и хочется понять что же с ним такое происходит?


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 11 сен 2010, 17:35 
Не в сети
Клиент

Зарегистрирован: 15 мар 2009, 14:04
Сообщения: 1337
Карма: 12
Если я правильно понял, проблемы начинаются когда RADIUS пытается загрузить справочник географических кодов. Я свой справочник загрузил из файла, указанного в документации (codes_bg.txt), все там порядка 122 тысяч строк. Когда я очистил таблицу voiceip_geographic_code и внес туда для примера всего 5 кодов, радиус работает великолепно и на отсутствие памяти не ругается.


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 20 сен 2010, 17:00 
Не в сети
Разработчик

Зарегистрирован: 08 ноя 2007, 01:05
Сообщения: 8343
Откуда: Уфа
Карма: 238
дайте ему больше памяти (параметр Xmx в скрипте запуска )


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 20 сен 2010, 18:36 
Не в сети
Клиент

Зарегистрирован: 15 мар 2009, 14:04
Сообщения: 1337
Карма: 12
Ну то есть так и задумано что пол гига в данной ситуации ему мало?


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 21 сен 2010, 20:42 
Не в сети
Разработчик

Зарегистрирован: 08 ноя 2007, 01:05
Сообщения: 8343
Откуда: Уфа
Карма: 238
borisk писал(а):
Ну то есть так и задумано что пол гига в данной ситуации ему мало?

Количество зависит от нагрузок , где то и 2 гига нужно .Попробуйте для начала увеличить .Возможно после старта он освободит память


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 26 сен 2010, 15:37 
Не в сети
Разработчик
Аватара пользователя

Зарегистрирован: 19 дек 2006, 21:04
Сообщения: 5970
Карма: 256
А билд последний?


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 28 сен 2010, 09:50 
Не в сети
Клиент

Зарегистрирован: 15 мар 2009, 14:04
Сообщения: 1337
Карма: 12
На тот момент был последний. Сейчас смотрю новее есть.


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 7 ] 

Часовой пояс: UTC + 5 часов [ Летнее время ]


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
POWERED_BY
Русская поддержка phpBB
[ Time : 0.035s | 29 Queries | GZIP : On ]