Christoph Lutz wrote:
> unopkg add <ourUNOPackgage> --shared
>
> on our debian-system with the original JRE1.5.0 java packages from sun
> requires about 300 MB of memory. Is it possible to reduce the memory
> usage of unopkg?
>
huh !!
what is the side of the package ?
package size is 450 kB.
what does it contain ?
here is the output of the unopkg list command. As you can see, there
is a uno.pkg with some java-code and some .XCUs.:
Name: WollMux.uno.pkg
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg
is registered: yes
Media-Type: application/vnd.sun.star.package-bundle
Description: UNO Package Bundle
bundled Packages: {
Name: WollMux
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/basic/WollMux/
is registered: yes
Media-Type: application/vnd.sun.star.basic-library
Description: OpenOffice.org Basic Bibliothek
Name: WollMux.rdb
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/WollMux.rdb
is registered: yes
Media-Type: application/vnd.sun.star.uno-typelibrary;type=RDB
Description: UNO RDB Type Library
Name: Jobs.xcu
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/Jobs.xcu
is registered: yes
Media-Type: application/vnd.sun.star.configuration-data
Description: Konfigurationsdaten
Name: ProtocolHandler.xcu
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/ProtocolHandler.xcu
is registered: yes
Media-Type: application/vnd.sun.star.configuration-data
Description: Konfigurationsdaten
Name: Controller.xcu
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/Controller.xcu
is registered: yes
Media-Type: application/vnd.sun.star.configuration-data
Description: Konfigurationsdaten
Name: WollMux.uno.jar
URL:
vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/z5Trb4_/WollMux.uno.pkg/WollMux.uno.jar
is registered: yes
Media-Type: application/vnd.sun.star.uno-component;type=Java
Description: UNO Java Component
}
So the failing "unopkg add <ourUNOPackgage> --shared" is for
"<ourUNOPackgage>" == "WollMux.uno.pkg", right? (Just asking because if
the unopkg add consistently fails for that package, a unopkg list
couldn't list it.) :)
is it using this amount for a long time ?
we get a memory allocation error from the jvm, which kills the process
Do you have a stack trace of that Java OutOfMemoryError? unopkg does
execute some code from the jar during registration, so this might shed
some light on what is happening.
-Stephan
BTW:
we are using 'aliend' RPMs of OOo2 2.0.3 and the latest JRE update
from Sun (1.5.0u8).
The error occures with a 512 MB PC, didn't see it happen on PCs with 1 GB.
regards
Christoph Lutz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]