Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lambert Mickael
Statistics
July 3, 2012 3:42 AM
Answer

Lambert Mickael

Rank: Junior Member

Posts: 58

Join Date: December 29, 2011

Recent Posts

Hello,

After looking on a lot of forum, i was asking if it's possible to get some statistics for portlets.

I'll like to create a new portlet which contains the following stats :

- Number of online users
- Number of total users
- Number of pages in a wiki.

That's it, i hope you can help me.

Have a good day!
Hitoshi Ozawa
RE: Statistics
July 3, 2012 5:19 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Number of users and number of wiki pages can be found by using UserLocalServiceUtil and WikiPageLocalServiceUtil
Lambert Mickael
RE: Statistics
July 3, 2012 5:24 AM
Answer

Lambert Mickael

Rank: Junior Member

Posts: 58

Join Date: December 29, 2011

Recent Posts

Thanks for the answer, i'll try this!

What about number of users online ?
David H Nebinger
RE: Statistics
July 3, 2012 8:45 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7024

Join Date: September 1, 2006

Recent Posts

You have to enable live monitoring in portal-ext.properties. You can then reference the monitoring jsp page to figure out how to get the number of live users, although this breaks down in a clustered system because an instance of the cluster doesn't share their user count w/ the rest of the instances.