[JBossCache] - Re: Jboss cache and heapspace memory
by haribaasha
One more thing i noticed. i turned off the caccheloader completely, i.e no bdbjeloader. so when the evict is called it is evicted from in-memory. In this case once my operation is complete and eviction happns the jvm comes back to the state before i started. so here are my results :
1. withcacheloader(bdbje) and CustomLRUPolicy(evicts from cache for timetolive, calls remove on Treecache for maxage) - memory hits very high peak and doesnt come down 1.1G
2. same as 1 only very low time to live, so evict will be called almost instantly , but high max age so the nodes are there in persistent storage - memory usage similar to 1.
3. no cache at all - memory usage is minimum about 100M continously
4. with cache and no cacheloader, hence evicted will be lost - goes up to 800M but on eviction comes down to 100M again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104382#4104382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104382
18 years, 8 months
[JBoss Portal] - Portal filling server LOGS
by sbarreros
I installed jboss portal to a new installation of jboss 4.2.2 and it seems to be running fine. however I get some sort of scheduler logging to the server logs every 5 seconds and my log files are huge. Is this normal? can I disable it? is this an error message and not just a notice?
2007-11-13 00:00:06,144 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, persistence]'
2007-11-13 00:00:06,144 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
2007-11-13 00:00:06,144 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
2007-11-13 00:00:06,144 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
2007-11-13 00:00:06,144 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4894433305165824
2007-11-13 00:00:06,144 DEBUG [org.jbpm.persistence.db.DbPersistenceService] beginning hibernate transaction
2007-11-13 00:00:06,144 DEBUG [org.hibernate.transaction.JTATransaction] Looking for UserTransaction under: UserTransaction
2007-11-13 00:00:06,145 DEBUG [org.hibernate.transaction.JTATransaction] Obtained UserTransaction
2007-11-13 00:00:06,145 DEBUG [org.hibernate.transaction.JTATransaction] begin
2007-11-13 00:00:06,145 DEBUG [org.hibernate.transaction.JTATransaction] Began a new JTA transaction
2007-11-13 00:00:06,145 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
2007-11-13 00:00:06,146 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2007-11-13 00:00:06,146 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
2007-11-13 00:00:06,147 DEBUG [org.hibernate.SQL]
/* named HQL query MessagingSession.findMessages */ select
message0_.ID_ as col_0_0_
from
JBPM_MESSAGE message0_
where
message0_.DESTINATION_=?
and message0_.ISSUSPENDED_<>1
and (
message0_.EXCEPTION_ is null
)
2007-11-13 00:00:06,148 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
2007-11-13 00:00:06,149 DEBUG [org.hibernate.impl.IteratorImpl] exhausted results
2007-11-13 00:00:06,149 DEBUG [org.hibernate.impl.IteratorImpl] closing iterator
2007-11-13 00:00:06,149 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
2007-11-13 00:00:06,149 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2007-11-13 00:00:06,149 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
2007-11-13 00:00:06,149 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-11-13 00:00:06,149 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
2007-11-13 00:00:06,150 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@9f0cb
2007-11-13 00:00:06,150 DEBUG [org.jbpm.persistence.db.DbPersistenceService] committing hibernate transaction
2007-11-13 00:00:06,150 DEBUG [org.hibernate.transaction.JTATransaction] commit
2007-11-13 00:00:06,151 DEBUG [org.hibernate.transaction.JTATransaction] Committed JTA UserTransaction
2007-11-13 00:00:06,151 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
2007-11-13 00:00:06,151 DEBUG [org.jbpm.svc.Services] closing service 'message': org.jbpm.msg.db.DbMessageService@9fba1d
2007-11-13 00:00:06,151 DEBUG [org.jbpm.msg.command.CommandExecutorThread] waiting for more messages
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104379#4104379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104379
18 years, 8 months
[JBossCache] - Re: Jboss cache and heapspace memory
by haribaasha
Yes u are right, i call remove instead of evict when maxage is reached.
i am using the Jboss Cache 1.4 , i think jalapeno...so that wud be a remove call on TreeCache. This wud be the (2) u were talking abt ?
my cache config file as in u mean the jboss-service.xml ?
<?xml version="1.0" encoding="UTF-8"?>
jboss:service=Naming
<TCP bind_addr="10.1.30.66"
start_port="51000"
loopback="true"/>
<PING timeout="2000" num_initial_members="3"
up_thread="true" down_thread="true"/>
<TCPPING initial_hosts="10.1.30.62[51000],10.1.30.66[51000]" port_range="3" timeout="3500" num_initial_members="3" up_thread="true" down_thread="true"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD shun="true" up_thread="true" down_thread="true"
timeout="2500" max_tries="5"/>
<VERIFY_SUSPECT timeout="3000" num_msgs="3"
up_thread="true" down_thread="true"/>
<pbcast.NAKACK gc_lag="50"
retransmit_timeout="300,600,1200,2400,4800"
max_xmit_size="8192"
up_thread="true" down_thread="true"/>
<UNICAST timeout="300,600,1200,2400,4800"
window_size="100" min_threshold="10"
down_thread="true"/>
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="true" down_thread="true"/>
<FRAG frag_size="8192"
down_thread="true" up_thread="true"/>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
shun="true" print_local_addr="true"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
<!--
Node locking level : SERIALIZABLE
REPEATABLE_READ (default)
READ_COMMITTED
READ_UNCOMMITTED
NONE
REPEATABLE_READ
-->
REPL_ASYNC
<!-- Name of cluster. Needs to be the same for all clusters, in order
to find each other
-->
TreeCache
<!-- JGroups protocol stack properties. Can also be a URL,
e.g. file:/home/bela/default.xml
-->
<!--
The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
20000
<!-- New 1.3.x cache loader config block -->
<!-- Eviction Policy Configuration -->
org.jboss.cache.eviction.CustomLRUPolicy
<!-- Specific eviction policy configurations. This is LRU -->
5
<!-- Cache wide default -->
300
100
80000
375
125
82000
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104377#4104377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104377
18 years, 8 months
[JBossCache] - ConcurrentModificationException when serializing session in
by archerzz
Hi all, recently I found that "ConcurrentModificationException" happened a few times in the server log. I know that JBoss 4.0.3sp1 has a bug:http://jira.jboss.com/jira/browse/JBAS-3137 on that. It's said that this problem is fixed. But now I met this again. Please see below. Also I found that before and after this exception happened, there were warning message "[org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself:" around it.
My configuration: JBoss 4.2.1GA + JDK 1.5.0_13. Any suggestion is appreciated. Thanks!
2007-11-13 08:22:57,418 ERROR [org.jboss.web.tomcat.service.session.JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: QyohhhjQAARi2HkAreBYvg**.server1 lastAccessedTime: 1194942177369 version: 765 lastOutdated: 0]
| java.util.ConcurrentModificationException
| at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
| at java.util.HashMap$EntryIterator.next(HashMap.java:883)
| at java.util.HashMap$EntryIterator.next(HashMap.java:881)
| at java.util.HashMap.writeObject(HashMap.java:1037)
| at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1380)
| at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175)
| at org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheService.java:1027)
| at org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:316)
| at org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:121)
| at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1097)
| at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:652)
| at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49)
| at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:98)
| at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
| at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| 2007-11-13 08:22:57,421 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@701eae
| java.lang.Throwable: STACKTRACE
| at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:417)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:112)
| at com.nsite.processserver.ConnectionManager.getConnection(ConnectionManager.java:174)
| at org.apache.jsp.c.rulesdesigner.DecisionTableBuilder_jsp._jspService(DecisionTableBuilder_jsp.java:133)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.nsite.filter.URLProcessorFilter.doFilter(URLProcessorFilter.java:39)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.nsite.filter.GZIPFilter.doFilter(GZIPFilter.java:23)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at com.nsite.config.RequestContextManager.doFilter(RequestContextManager.java:31)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
| at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
| at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104376#4104376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104376
18 years, 8 months
[EJB 3.0] - Questiob about Local EJB3
by pdtp
Hi...
In my ear file, I have 2 ejb3's jar and 1 war file. I have specify that in my application.xml. My app server Jboss4.0.5GA.
I implement both remote and local for my ejb3 (all stateless bean).
My question:
1. When I try to call one of my ejb as local ejb from my web layer, it throw javax.ejb.EJBException: Invalid invocation of local interface (null container). This exception is thrown when I call one of the method in the interface. I did make null check before calling any method in the interface( basically after called lookup method in InitialContext). But if I called as remote ejb, it works fine. Since I deploy both ejb and web in the same JBOSS, I expected I am able to call my ejb as local ejb. Any idea about this?
2. Since I have 2 ejb3 jar, I try to called any ejbbean from one ejb jar to another ejb jar as local bean, it works fine. Any idea, why I can't call any ejb bean as local ejb from my web layer? I did make null check before calling any method in the interface( basically after called lookup method in InitialContext).
I have checked through jboss jms-console (http://localhost:8080/jmx-console --> service=JNDIView --> click on the Invoke button beside the list() method), I can see my EJB Bean as Local and Remote in the JNDI Tree.
any Idea?
thank you in advance
pdt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104375#4104375
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104375
18 years, 8 months