activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: ActiveMQ 5.4.1: weird behaviour
Date Fri, 20 Jan 2012 11:05:52 GMT
I have not looked into that in detail, but I recall it is related to
reaching the journal max and rolling over. It seems the checkpoint is
not smart enough to deal with that case.

Do all subsequent checkpoints fail? It may be that the only down side
is potential slow recovery or do you see other symptoms?

On 20 January 2012 10:47, LE Phi Long <phi-long.le@atos.net> wrote:
> Chaps,
>
> I've read lots of things on the web but no solutions at all about an error message from
activeMQ. The following error message occurs lots of time
>
> My configuration: AIX 5.3 / IBM jvm 1.6.0 SR9
>
> Stacktrace from active MQ:
>
> 2012-01-20 11:34:34,687 | ERROR | Failed to mark the Journal: org.apache.activeio.journal.InvalidRecordLocationException:
The location is less than the last mark. | org.apache.activemq.store.journal.JournalPersistenceAdapter
| Persistence Adaptor Task
> org.apache.activeio.journal.InvalidRecordLocationException: The location is less than
the last mark.
>        at org.apache.activeio.journal.active.JournalImpl.setMark(JournalImpl.java:340)
>        at org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpoint(JournalPersistenceAdapter.java:456)
>        at org.apache.activemq.store.journal.JournalPersistenceAdapter$2.iterate(JournalPersistenceAdapter.java:244)
>        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
>        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
>        at java.lang.Thread.run(Thread.java:736)
>
> My activeMQ config:
>
> <beans
>  xmlns="http://www.springframework.org/schema/beans"
>  xmlns:amq="http://activemq.apache.org/schema/core"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
>
>    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>        <property name="locations">
>            <value>file:${activemq.base}/conf/credentials.properties</value>
>        </property>
>    </bean>
>
>    <broker
>                xmlns="http://activemq.apache.org/schema/core"
>                brokerName="cocololo"
>                dataDirectory="${activemq.base}/data"
>                useJmx="true"
>                persistent="true"
>                schedulerSupport="false"
>                useShutdownHook="false">
>
>        <destinationPolicy>
>            <policyMap>
>              <policyEntries>
>                <policyEntry queue=">" producerFlowControl="false"/>
>              </policyEntries>
>            </policyMap>
>        </destinationPolicy>
>
>        <managementContext>
>            <managementContext createConnector="true"/>
>        </managementContext>
>                <persistenceFactory>
>                        <journalPersistenceAdapterFactory journalLogFiles="5"
journalThreadPriority="1" dataDirectory="${activemq.base}/loantam" dataSource="#oracle-ds"
useDatabaseLock="false"/>
>                </persistenceFactory>
>
>                <transportConnectors>
>            <transportConnector name="openwire" uri="tcp://175.2.11.46:6667?connectionTimeout=0&amp;wireFormat.maxInactivityDuration=0"/>
>        </transportConnectors>
>
>    </broker>
>        <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
>                <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
>                <property name="url" value="jdbc:oracle:thin:@vhiud21:15222:HPFI22G"/>
>                <property name="username" value="amqdb04"/>
>                <property name="password" value="amqdb04"/>
>                <property name="maxActive" value="200"/>
>                <property name="poolPreparedStatements" value="true"/>
>        </bean>
> </beans>
> ________________________________
>
> Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de
ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez
ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit?
du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra
?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour
maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie
? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un
virus transmis.
>
> This e-mail and the documents attached are confidential and intended solely for the addressee;
it may also be privileged. If you receive this e-mail in error, please notify the sender immediately
and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability
cannot be triggered for the message content. Although the sender endeavors to maintain a computer
virus-free network, the sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message