Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

issues with memory footprint of Myfaces/JSF?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've been using Myfaces implementation of JSF for couple of months but didn't do any sort profling and facing issues with memory footprint now.
I'm using datatable for rendering personal information of employees. Each row corresponds to a employee object, the row has just 10 columns.
However, we're not using the pagination (that's the last resort - > as the users get annoyed with it). It works fine in terms of memory footprint and CPU, when the dataset the table renders is small, but when the size of the datasets is large(talking about 1000 or more), I get out of memory error even though the Managed Bean is request-scoped. So when the number of user increases, this leads to a serious issues of server crash, hang etc.
On profiling using yourtoolkit, I found that faces context never releases the memory used by components and the behaviour is erratic. The GC kicks in after certain stage which is not very useful. Even for a table of small data rows, it doesn't seem to release the memory.
So even the pagination doesn't seem to solve the out-of-memory issue as the web site will be used by at least 4000 users.

Has anyone faced similar issues? Would appreciate your help in this regard.
thanks
Fred
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic