[Remoting] - JBREM-1005: Prevent build up of cancelled TimerTasks in biso
by ron.sigal@jboss.com
>From JIRA issue JBREM-1005:
"Andre Parodi" wrote :
| I am having trouble with my heap filling up with these ControlMonitorTimerTasks. I have set my pingFrequency to 300 000 ( 5 min). Is there any reason that the default is set so unreasonably high? Should I be worried about adverse effects of having the pingFrequency set to 5 mins?
|
| This would be a tactical fix until SP9 is available.
|
Hi Andre,
My suggestion of 300000 ms was just a guess. This issue arose in the context of JBossMessaging, which sets pingFrequency to a huge number to disable pinging. They did that because the pinging facility was causing problems for them on busy machines/networks. I was just suggesting setting the value to something small enough that the TimerTasks get cleaned up but still large enough that pinging doesn't cause problems for JBossMessaging.
You should feel free to set pingFrequency to any value that works for you. It should be large enough to avoid a lot of "false positives", i.e., apparent failures due to late arrivals of PINGs.
Also, I've attached a 2.2.2.SP9 preview of jboss-remoting.jar on JBREM-1005 (http://jira.jboss.com/jira/browse/JBREM-1005).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162626#4162626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162626
17 years, 10 months
[Beginners Corner] - Re: Load Library problem
by tgcosta
Hi PeterJ
So, i didn't wrote the code to start JBossAS. I have an JBossService.exe and a file that call this. Here is the code that i use:
@echo off
setlocal
set Nome=%~n0
set DirIns=%~dp0
set DirJB=C:\jboss-4.2.2.GA
set DirJBS=%DirJB%\_service
set ArqExe=%DirJBS%\JBossService.exe
set JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
if not "%DirIns%"=="%DirJBS%\" (
echo.
echo %Nome% ERRO: Current Directory Invalid!
echo.
echo Precisa ser %DirJBS%
echo.
pause
exit /b
)
if not exist %ArqExe% (
echo.
echo %Nome% ERRO: File not find!
echo.
echo %ArqExe%
echo.
pause
exit /b
)
if "%JAVA_HOME%"=="" (
echo.
echo %Nome% ERRO: Enviroment Variable JAVA_HOME isn't ok!
echo.
pause
exit /b
)
if not exist %JVM% (
echo.
echo %Nome% ERRO: JVM not found!
echo.
echo %JVM%
echo.
pause
exit /b
)
echo -------------------------------------------------------------------------------
echo JVM DO JBoss1 Configuration
echo.
echo Automatic Configuration for JVM (Machine Memory Virtual Java)
echo.
echo.
set /p vm_min="Choose VM min: [Padrao=128] "
set /p vm_max="Choose VM max: [Padrao=512] "
if "%vm_min%"=="" (
set vm_min=128
)
if "%vm_max%"=="" (
set vm_max=512
)
set vm_min=-Xms%vm_min%m
set vm_max=-Xmx%vm_max%m
echo.
echo Installing Service JBoss1...
%ArqExe% -uninstall JBoss1 > nul
%ArqExe% -install JBoss1 %JVM% -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%DirJB%\bin\run.jar %vm_min% %vm_max% -start org.jboss.Main -params -cdefault1 -stop org.jboss.Main -method systemExit -out %DirJBS%\stdout1.log -err %DirJBS%\stderr1.log -current %DirJB%\bin -manual
set vm_min=
set vm_max=
echo.
echo %Nome%: Ok
echo.
pause
echo.
echo.
echo Installation succeeded!
echo.
echo.
pause
I tried to use a JBoss Native, but occurred the same problem. I think the main problem is with LoadLibrary for x64 system....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162624#4162624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162624
17 years, 10 months