[
http://jira.jboss.com/jira/browse/JBPORTAL-1618?page=comments#action_1237... ]
Sohil Shah commented on JBPORTAL-1618:
--------------------------------------
Mike is working on a support case where customer is streaming binary content, and for some
content, the server seems to slow down a lot due to excessive memory consumption.
Its not fully confirmed that this is the source of the issue. He is still working with the
customer for more tests.
However, technically if the binary content is really really long, it could be a memory
issue. Maybe a hybrid approach could be possible
where if the content is beyond a certain size, use the file system caching/streaming
approach, but for most files use the current in-memory approach.
Obviously the size at which the switch occurs is probably discussable.
Change ContentImpl to hold a pointer to a stream, not a byte array
------------------------------------------------------------------
Key: JBPORTAL-1618
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1618
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Portal CMS
Affects Versions: 2.4.1 SP1, 2.6.1 Final
Reporter: Mike Millson
Assigned To: Sohil Shah
ContentImpl currently stores content as a byte array. This consumes memory as the Content
object is passed around the JVM. Consider storing the content as a tempory file on the
filesystem until the stream is sent.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira