[JBoss Cache: Core Edition] - What is the definition of Node in treecache? Passive?
by yangju
We run jboss 4.2.GA, hibernate and treecache 1.4.1 as hibernate cache provider. Recently in production we notice that the database got hit really badly. We are thinking maybe because our cache's node limit is too small. We deploy treecache as mbean and it has the following attribute:
5000. Almost all of entities (hibernate objects) are under one node.
My question is that does maxNodes includes the actual number of entities that hibernate caches or it is just the max number of treecache directories. What exactly the definition of 'Node'? Is an entity that is cached on a node is counted as a node? In our case if we bump up the maxNodes from 5000 to say, 10,000, will it increase the number of hibernate objects the treecache can hold? Will it cause outofmemory?
Also, I heard about passive/overflow in eviction. If we turn on passive to ture, can we save the overflow entities to disk, even we use hibernate and oracle database? Our problem is the database got hit badly with the hibernate select calls. By using passive can it be improved?
Thanks.
richard
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221643#4221643
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221643
17 years
[JBoss Portal] - Re: Administration Page/Portlet is disabled accidentally, ho
by vivek_saini07
hi
You are at right default-object.xml file. I gave you path in source code, you are checking it in binaries. Anyway we are at same file now.
Now do one more thing.
1. go to the same file let it be "overwrite" from "keep"
2. Find following in default-object.xml
<window>
| <window-name>AdminPortletWindow</window-name>
| <instance-ref>AdminPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
change it to
<window>
| <window-name>AdminPortletWindow</window-name>
| <instance-ref>AdminPortletInstance1</instance-ref>
| <region>center</region>
| <height>0</height>
3. now go to portal-admin.sar/portal-admin.war/WEB-INF/portlet-instances.xml
4. find for following in it.
<instance-id>AdminPortletInstance</instance-id>
| <portlet-ref>AdminPortlet</portlet-ref>
| <security-constraint>
| <policy-permission>
and change it to
<instance-id>AdminPortletInstance1</instance-id>
| <portlet-ref>AdminPortlet</portlet-ref>
| <security-constraint>
| <policy-permission>
5. Restart the server
Basically now we are changing AdminPortletInstance to AdminPortletInstance1
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221638#4221638
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221638
17 years
[JBossMQ] - Improvement suggestions: Messaging in a clustered environmen
by FrankTheTank
I am currently setting up a system where we will have multiple JBoss AppServers (4.2.3) and one DB in the backend.
I have configured everything to use the single DB and the DefaultDS is also mapped to it.
The AppServers will each have the following:
* one Queue deployed in deploy-hasingleton for 'internal' messages (communication between services, we only want one service to handle the event)
* one Topic deployed in deploy-hasingleton for 'external' messages (multiple possible listeners)
* Our services ((M)Beans)
I have one convenience Class that supplies a method to send out messages to a certain destination and used by all services.
Due to the clustered nature of the setup and that the the destinations are ha-singletons, I (after much cursing and browsing) use the HAJNDI lookup (using the bind.address + port, the example uses 'localhost' but that might not be the bind address) to get the ConnectionFactory and that then sends out the (sessioned) message.
Otherwise if RoundRobin sends the RMI connection to the AppServer without the ConnectionFactory, it will not be able to find the destinations and throw an exception.
So far everything is working (as far as I can tell) but am wondering if there are any improvements I could do?
F.i. the lookup of the ConnectionFactory. Is this the correct way to do it?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221635#4221635
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221635
17 years
[JBoss Portal] - Re: Getting Access to assigned Portlet Instances => Portlet
by vivek_saini07
Hi
To get information regarding all deployed portlets, Mbean is
| <service-name>InstanceContainer</service-name>
| <service-class>org.jboss.portal.core.model.instance.InstanceContainer</service-class>
| <service-ref>:container=Instance</service-ref>
|
|
Example of using it
| Collection col=instanceContainer.getDefinitions();
| for(Object o:col)
| {
| Instance inst =(Instance)o;
| log.debug("portlet name is :"+inst.getId());
|
| }
|
|
And for getting all portlet from some particular page you can do something like
| templatePortletFromSelectedObject = new HashMap();
| if(currentTemplatePageObj!=null) {
| PortalObjectId pageId = PortalObjectId.parse(currentTemplatePageObj, PortalObjectPath.CANONICAL_FORMAT);
| Page selectedPage = (Page) portalObjectContainer.getObject(pageId);
| Collection portletWindows = selectedPage.getChildren(PortalObject.WINDOW_MASK);
| Iterator it= portletWindows.iterator();
| while (it.hasNext()) {
| WindowImpl window = (WindowImpl) it.next();
| if(window.getContentType()==ContentType.PORTLET)
| templatePortletFromSelectedObject.put(window.getURI(), window.getName());
| else if (window.getContentType()==ContentType.CMS)
| templatePortletFromSelectedObject.put("CMSPortletInstance", window.getName());
| }
| }
|
|
To find out more on how to use portal api you can refer to /core-admin/src/main/org/jboss/portal/core/admin/ui/PortalObjectManagerBean.java and other files in same package.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221634#4221634
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221634
17 years