cancel
Showing results for 
Search instead for 
Did you mean: 

Java/OpenOffice problem with 3.3 on Ubuntu 10.10

ryank
Champ in-the-making
Champ in-the-making
I have my new VPS set up with Ubuntu 10.10 64-bit and I'm following this howto:

http://www.howtoforge.com/how-to-install-alfresco-community-3.3-on-ubuntu-server-10.04-lucid-lynx

All good until I get to the part where I start the openoffice service:

root@dms:~# /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

I get the error:

javaldx: Could not find a Java Runtime Environment!
Please ensure that a JVM and the package openoffice.org-java-common is installed.
If it is already installed then try removing ~/.openoffice.org/3/user/config/javasettings_Linux_*.xml

[1]+ Done               /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100; urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard

So it looks like a java problem, and I run

java -version

which gets

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java Virtual Machine

I am running a new VPS with these specs:
Disk space: 30GB
Memory: 1GB
Burst: 1GB

Memory usage is running at 66% which is odd because when I run top, it says that java is running and is using 54.3% of the cpu.

I'm at a loss as to what to do next. Any help appreciated.
4 REPLIES 4

ryank
Champ in-the-making
Champ in-the-making
Anyone? Smiley Sad I spent my own money on a VPS for the organisation I work for because I believe in open source software and document management… don't make me lose faith in community-driven innovation!

loftux
Star Contributor
Star Contributor
Don't lose faith (at least not in the community, other faiths are ok).

You must give us a lot more information. First, what version did you install? Can you post alfresco.log (post in the code tag for readability).
Maybe better to read the documentation at http://docs.alfresco.com/4.0/index.jsp?
If you are new to Alfresco, maybe better to use the bundled installer, it will give you everything. Although I recommend that you learn to install and configure the individual components, you are on the path to learning that, a quicker start is the bundled installer.

In later versions as in 4.0.d, Open Office should start automatically when you start Alfresco if correctly configured.
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/OOo-subsystems-intro.html

loftux
Star Contributor
Star Contributor
Reading your post a bit more, from the title it looks like you are actually running version 3.3. You should definitely get the latest 4.0.d if there is no very specific reason to use the 3.3 version.

Also, you need a lot more memory on you vps. The error you are seeing is that you are out of memory. Java is very memory hungry, and if you run the database on the same server, for a small team of 10 users you need about 4Gb to run Alfresco with the db on the same server. Give Alfresco max 2Gb in JAVA_OPTS, that leaves 2Gb to the OS, OpenOffice and the database.

ryank
Champ in-the-making
Champ in-the-making
Thanks for the reply. I read on the Alfresco site that the minimum is 1GB so that's what I gave it. You guys probably need to get real with people about the actual requirements.

I tried to install 4.0.d and it hung partway through the installation, and now it won't complete the installation because it's requesting a different port and that one's already in use. Rather than google every problem I hit, I went with a better supported version because I couldn't find enough help on 4.0.d.

I reckon I'll give up now.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.