Memory leak in Ajax poll?

UI Components for JSF
Post Reply
niubi
Posts: 3
Joined: 03 Nov 2010, 18:17

03 Nov 2010, 18:36

Hi all,

I´m having problems with memory leaks in a web using ajax poll and I have seen that the Ajax poll showcase in the PrimeFaces web site has a memory leak too. Is this a known bug?


I´m using primefaces-2.2.M1, Mojarra 2.0.2 (FCS b10) and Tomcat 6.0.24

Thanks in advance!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Nov 2010, 18:39

How do you understand that there is a leak?

niubi
Posts: 3
Joined: 03 Nov 2010, 18:17

04 Nov 2010, 10:08

I run the ajax poll showcase (with IE 8 or FireFox 3.6) and the memory used by the browser increase indefinitely. So if you keep the browser window open for a long period it will eat up all your resources.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Nov 2010, 11:00

Which tool are you using for profiling.

niubi
Posts: 3
Joined: 03 Nov 2010, 18:17

04 Nov 2010, 11:45

I´ve used Drip, its available here http://outofhanwell.com/ieleak/index.ph ... =Main_Page

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

04 Nov 2010, 19:46

If there really is a memory leak in poll then I'm in big trouble. Since AJAX Push isn't working in the latest PrimeFaces I'm resorting to polling. If polling also is not a valid option then ... well...

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

04 Nov 2010, 22:04

Hi bumble.bee,

I recommend you to try ICEPush http://www.icepush.org/. It's very simple to use and is more reliable than other server push technologies.

Here is a small article about this subject http://java.dzone.com/articles/icepush- ... va+Zone%29
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

05 Nov 2010, 15:47

Thanks for the suggestion. IcePush sounds like a reasonable option. I would have to use the JavaScript or jQuery / raw interface I suppose since the JSF integration is IceFaces, which I don't want to fool with (dealing with the quirks of one component library is about all I can take).

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

05 Nov 2010, 16:07

Hi bumble.bee,

ICEPush != ICEFaces. It's an independent jar file without any dependencies. Pure JDK.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

05 Nov 2010, 17:13

Yeah, I got that part. The DZ article though lists all of the integration options and the one for JSF says it is IceFaces.

All I was saying in my previous post is that I don't want to use IceFaces so as far as integration options are concerned it looks like I'd need to use either JavaScript or jQuery.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests