<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: JSF View Scope can lead to memory leak</title><link>https://answers.axonivy.com/questions/2918/jsf-view-scope-can-lead-to-memory-leak</link><description>&lt;p&gt;JSF stores the View Scope (&lt;code&gt;@ViewScope&lt;/code&gt;) in the session store. Can this lead to memory issues?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2918/jsf-view-scope-can-lead-to-memory-leak" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 18 Oct 2017 11:01:15 -0400</lastBuildDate><item><title>Answer by SupportIvyTeam</title><link>https://answers.axonivy.com/questions/2918/jsf-view-scope-can-lead-to-memory-leak/2919</link><description>&lt;p&gt;Each new view needs new space again. This problematic is well-known in the JSF world:
&lt;a href="https://www.google.ch/search?q=jsf+view+scope+memory"&gt;https://www.google.ch/search?q=jsf+view+scope+memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementations like &lt;em&gt;myfaces&lt;/em&gt; already tried to hit this issue with solutions like the LRU Cache (Last Recently Used)  &lt;code&gt;org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Ivy makes sure when a user logs out that the ViewScope is deleted.&lt;/p&gt;
&lt;p&gt;However, we are planning improvements in this area: As soon as the dialog ends properly, we will ensure that the view scope is deleted in the future.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Wed, 18 Oct 2017 11:01:15 -0400</pubDate><guid>https://answers.axonivy.com/questions/2918/jsf-view-scope-can-lead-to-memory-leak/2919</guid></item></channel></rss>