Antonio Gallardo schrieb:
> Johannes Schaefer wrote:
>
>> Johannes Schaefer schrieb:
>>
>>
>>> Hi!
>>>
>>> I get an out-of-memory error for movies above a certain size
>>> (around 10MB):
>>> 15:18:41.906 WARN!! Error for .../movs/madagascar.mov
>>> java.lang.OutOfMemoryError: Java heap space
>>>
>>
>>
>> OK,
>> here's steps 1 to 3 to "solve" this problem
>>
>> 1. set <parameter name="heapsize" value="512000000"/>
>> in cocoon.xconf
>> 2. set JAVA_OPTIONS="-Xmx256m"
>>
>> Now we can have bigger movies in our app.
>>
>>
>>
>>> Smaller movies don't make problems.
>>>
>>> How can I increase the heap size for Cocoon?
>>>
>>>
>>> If it is caching: Can I turn caching off only for the *.mov
>>> matcher?
>>> <map:match pattern="**.mov">
>>> <map:read src="{0}" mime-type="video/quicktime"/>
>>> </map:match>
>>>
>>
>>
>> 3. put the *mov match into a noncachable pipeline.
>>
>> Now we can have more movies in our app.
>>
>> Can I improve on this?
>>
>>
>
> <!--+
> | Resource reader has these configuration parameters:
> <expires>-1</expires>
> <quick-modified-test>false</quick-modified-test>
> <byte-ranges>true</byte-ranges>
> <buffer-size>8192</buffer-size>
> +-->
>
> Pay special attention to the buffer. There is no need to increase the
> JVM memory.
Don't get it.
I tried the above and let the Java heap alone (no -Xmx setting).
Tried it inside a cachable and a noncachable pipeline.
Tried increasing buffer-size.
No results:
java.exe (I'm on WinXP) keeps eating up memory and at
a certain point I get the OutOfMem error.
I'm OK with the solution we have (for now), just thought
there might be something more reasonable.
Thanks
Johannes
>
> Best Regards,
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de
Buch "User Interface Tuning" von Joachim Machate & Michael Burmester
www.user-interface-tuning.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]