[jboss-dev] 1' hornetq delay on first boot

Bill Burke bburke at redhat.com
Mon Jul 19 08:49:40 EDT 2010


It is simple to define a profile for AS.

Jaikiran Pai wrote:
> On Friday 02 July 2010 11:51 PM, Clebert Suconic wrote:
>> It's very common on the JMS world users downloading the server, trying
>> out of the box settings and compare performance results with other
>> servers before taking a decision.
> IMO, that approach is wrong. For doing any performance testing, the user 
> should be aware of what configs they are testing against. Such users are 
> expected to tune/change configs before doing the tests. Also IMO, such 
> users aren't many, compared to developers who just want to see their AS 
> up and running in minimal possible time.
> 
>> Using less files for HornetQ would be ok for development..
> IMO that should be OK. After all, it's a internal impl detail of the JMS 
> provider, which not many developers want to change while developing 
> their application. Of course, in production, it's a different 
> perspective altogether.
> 
>> but we don't
>> have a production profile where users would take benchmark results.
> Talking from a community edition (JBoss AS) point of view, although we 
> do not have a production profile for benchmarking, there are some wiki 
> articles or even project specific docs which talk about tuning the 
> configs for production use. So as long as we document this somewhere, I 
> guess it's worth changing the HornetQ configs for AS to allow the server 
> to start in minimal possible time.
> 
> -Jaikiran
>> I believe other projects would have the same issue as well. (settings
>> for production as opposed to development)
>>
>> On 07/02/2010 05:56 AM, Dimitris Andreadis wrote:
>>> https://jira.jboss.org/browse/JBAS-8148
>>> ...
>>>       <!-- Default journal file size is 10Mb, reduced here to 1Mb for faster first boot -->
>>>       <journal-file-size>${hornetq.journal.file.size:1048576}</journal-file-size>
>>>
>>>       <!-- Default journal min file is 2, increase for higher average msg rates -->
>>>       <journal-min-files>${hornetq.journal.min.files:2}</journal-min-files>
>>> ...
>>>
>>> I think those are good for developer settings, let me know if you see any issues. It will
>>> just create more 1Mb journal files, as needed, and the user can override those on the
>>> command line.
>>>
>>> First boot on crappy laptop for 'default' drops from 92'->32', second boot 28'
>>>
>>> Tim Fox wrote:
>>>
>>>> http://hornetq.sourceforge.net/docs/hornetq-2.1.0.Final/user-manual/en/html/persistence.html
>>>>
>>>>
>>>> http://hornetq.sourceforge.net/docs/hornetq-2.1.0.Final/user-manual/en/html/perf-tuning.html#d0e11157
>>>>
>>>>
>>>> You could reduce this number if you like. Files will still be created on
>>>> demand, it just gives you less hit on demand if the files are
>>>> pre-created, and consequently better performance in "out of the box"
>>>> benchmarks, since it won't have to create the files during the benchmark
>>>> run.
>>>>
>>>> Alternatively you could ship some actually empty binary journal files in
>>>> the AS distro - but this would make the distro larger, nor sure if you
>>>> would like that.
>>>>
>>>> On 01/07/10 12:38, Dimitris Andreadis wrote:
>>>>
>>>>> It creates 10 (x10MB) files, AFAICT.
>>>>>
>>>>> Tim Fox wrote:
>>>>>
>>>>>> The first time you run it, it creates the journal files.
>>>>>>
>>>>>> The more files you have configured it with (see journal-min-files
>>>>>> param in user manual) the longer it will take to create them. I don't
>>>>>> know how many AS is using.
>>>>>>
>>>>>> On 01/07/10 12:25, Dimitris Andreadis wrote:
>>>>>>
>>>>>>> On a 4y old WinXP laptop, hornetq seems to be adding a 1 minute
>>>>>>> delay on the first boot, while creating the
>>>>>>> server/xxx/data/hornetq/journal/* files
>>>>>>>
>>>>>>> 2nd boot comes without that delay. Can we avoid this?
>>>>>>>
>>>>>>> 14:03:27,624 INFO  [AbstractServer] Starting: JBossAS
>>>>>>> [6.0.0.SNAPSHOT "Neo"]
>>>>>>> 14:03:29,702 INFO  [ServerInfo] Java version: 1.6.0_16,Sun
>>>>>>> Microsystems Inc.
>>>>>>> 14:03:29,702 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime
>>>>>>> Environment (b
>>>>>>> uild 1.6.0_16-b01)
>>>>>>> 14:03:29,702 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM
>>>>>>> 14.2-b01,Sun
>>>>>>>    Microsystems Inc.
>>>>>>> 14:03:29,702 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
>>>>>>> 14:03:29,702 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat
>>>>>>> -Xms128M -X
>>>>>>> mx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000
>>>>>>> -Dsun.rmi.dg
>>>>>>> c.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true
>>>>>>> -Djava.endorsed.di
>>>>>>> rs=X:\svn\jboss-trunk\build\target\jboss-6.0.0-SNAPSHOT\lib\endorsed
>>>>>>> 14:03:29,780 INFO  [JMXKernel] Legacy JMX core initialized
>>>>>>> 14:03:37,811 INFO  [AbstractServerConfig] JBoss Web Services - Stack
>>>>>>> CXF Server
>>>>>>> 3.3.1.SP1
>>>>>>> 14:03:38,405 INFO  [JSFImplManagementDeployer] Initialized 2 JSF
>>>>>>> configurations:
>>>>>>>    [Mojarra-1.2, Mojarra-2.0]
>>>>>>> 14:03:42,749 WARNING [FileConfigurationParser] AIO wasn't located on
>>>>>>> this platfo
>>>>>>> rm, it will fall back to using pure Java NIO. If your platform is
>>>>>>> Linux, install
>>>>>>>    LibAIO to enable the AIO journal
>>>>>>> 14:03:47,483 WARNING [FileConfigurationParser] AIO wasn't located on
>>>>>>> this platfo
>>>>>>> rm, it will fall back to using pure Java NIO. If your platform is
>>>>>>> Linux, install
>>>>>>>    LibAIO to enable the AIO journal
>>>>>>> 14:03:47,671 INFO  [JMXConnector] starting JMXConnector on host
>>>>>>> 127.0.0.1:1090
>>>>>>> 14:03:48,202 INFO  [MailService] Mail Service bound to java:/Mail
>>>>>>> 14:03:49,280 INFO  [HornetQServerImpl] live server is starting..
>>>>>>> 14:03:49,358 INFO  [JournalStorageManager] Using NIO Journal
>>>>>>> 14:03:49,374 WARNING [HornetQServerImpl] Security risk! It has been
>>>>>>> detected tha
>>>>>>> t the cluster admin user and password have not been changed from the
>>>>>>> installatio
>>>>>>> n default. Please see the HornetQ user guide, cluster chapter, for
>>>>>>> instructions
>>>>>>> on how to do this.
>>>>>>> <-- HERE -->
>>>>>>> 14:04:52,077 INFO  [NettyAcceptor] Started Netty Acceptor version
>>>>>>> 3.2.0.Final-r2
>>>>>>> 292 127.0.0.1:5455 for CORE protocol
>>>>>>> 14:04:52,092 INFO  [NettyAcceptor] Started Netty Acceptor version
>>>>>>> 3.2.0.Final-r2
>>>>>>> 292 127.0.0.1:5445 for CORE protocol
>>>>>>> 14:04:52,092 INFO  [HornetQServerImpl] HornetQ Server version
>>>>>>> 2.1.1.Final (Strip
>>>>>>> ey, 119) started
>>>>>>>
>>>>>>> [snip]
>>>>>>>
>>>>>>> 14:08:24,827 INFO
>>>>>>> [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
>>>>>>>    [6.0.0.SNAPSHOT "Neo"] Started in 1m:30s:656ms
>>>>>>>
>>>>>>
>>>>
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>>
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
> 
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the jboss-development mailing list