Discussion:
any alfresco/java people out there?
Steve Holdoway
2011-02-15 04:35:22 UTC
Permalink
Hey,

I'm trying to run Alfresco to provide services for 3 people NZ-wide,
working on 10's of documents. I've got a 768MB virtuozzo VPS with no
swap. This is proving extremely unreliable as it keeps running out of
memory and dumping services.

I get this in the alfresco log...

14:02:25,215 ERROR [org.alfresco.fileserver] java.io.IOException:
Connection reset by peer
14:02:25,215 ERROR [org.alfresco.fileserver] at
sun.nio.ch.FileDispatcher.write0(Native Method)
14:02:25,215 ERROR [org.alfresco.fileserver] at
sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
14:02:25,215 ERROR [org.alfresco.fileserver] at
sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:100)
14:02:25,215 ERROR [org.alfresco.fileserver] at
sun.nio.ch.IOUtil.write(IOUtil.java:71)
14:02:25,215 ERROR [org.alfresco.fileserver] at
sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
14:02:25,215 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.smb.server.nio.ChannelPacketHandler.writeBytes(ChannelPacketHandler.java:127)
14:02:25,215 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.smb.server.nio.NetBIOSSMBChannelHandler.writePacket(NetBIOSSMBChannelHandler.java:193)
14:02:25,215 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.smb.server.SMBSrvSession.procNetBIOSSessionRequest(SMBSrvSession.java:900)
14:02:25,215 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1437)
14:02:25,215 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
14:02:25,216 ERROR [org.alfresco.fileserver] at
org.alfresco.jlan.server.thread.ThreadRequestPool
$ThreadWorker.run(ThreadRequestPool.java:153)
14:02:25,216 ERROR [org.alfresco.fileserver] at
java.lang.Thread.run(Thread.java:662)

And when I investigated, mail and webservers were not running.

I'm starting using

export JAVA_OPTS='-Xms128m -Xmx384m -XX:MaxPermSize=128m -server'

on a debian lenny server, with this version of java installed.

ii sun-java6-bin 6-22-0lenny1 Sun
Java(TM) Runtime Environment (JRE) 6 (ar
ii sun-java6-jdk 6-22-0lenny1 Sun
Java(TM) Development Kit (JDK) 6
ii sun-java6-jre 6-22-0lenny1 Sun
Java(TM) Runtime Environment (JRE) 6 (ar

Any suggestions? I've got a script that just restarts processes if
failed atm, but that's not the best!

Cheers,

Steve
--
Steve Holdoway BSc(Hons) MNZCS <***@greengecko.co.nz>
http://www.greengecko.co.nz
MSN: ***@greengecko.co.nz
Skype: sholdowa
Robert Coup
2011-02-15 04:46:30 UTC
Permalink
Hi Steve,
Post by Steve Holdoway
I'm starting using
export JAVA_OPTS='-Xms128m -Xmx384m -XX:MaxPermSize=128m -server'
I doubt it'll solve your actual problem (I think you'll need to boost
Xmx), but adding "-XX:+UseCompressedOops" to your JAVA_OPTS should
drop the memory usage on the 64bit JVM (it basically stores 32bit
pointers everywhere) - this makes a noticeable difference on memory
constrained VPS'.

Rob :)

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Steve Holdoway
2011-02-15 05:45:39 UTC
Permalink
Post by Robert Coup
Hi Steve,
Post by Steve Holdoway
I'm starting using
export JAVA_OPTS='-Xms128m -Xmx384m -XX:MaxPermSize=128m -server'
I doubt it'll solve your actual problem (I think you'll need to boost
Xmx), but adding "-XX:+UseCompressedOops" to your JAVA_OPTS should
drop the memory usage on the 64bit JVM (it basically stores 32bit
pointers everywhere) - this makes a noticeable difference on memory
constrained VPS'.
Rob :)
Sad to say...

Unrecognized VM option '+UseCompressedOops' - but it is a 32 bit VM so I
should have checked that first!

Steve
--
Steve Holdoway BSc(Hons) MNZCS <***@greengecko.co.nz>
http://www.greengecko.co.nz
MSN: ***@greengecko.co.nz
Skype: sholdowa
Glenn Enright
2011-02-15 09:48:03 UTC
Permalink
Afresco is one of those notoriously memory hungry webapps. To the
point where I've seen it simply refuse to run on smaller systems since
it can load all its core functions into the available JVM. If at all
possible bump your RAM up to at least 1G, which is what is recommended
in the requirements docs. And that will save you unending grief later
as the system starts to get used more. And lets not start about
plugins...

http://wiki.alfresco.com/wiki/JVM_Tuning

Regards
--Glenn
Post by Steve Holdoway
Post by Robert Coup
Hi Steve,
Post by Steve Holdoway
I'm starting using
export JAVA_OPTS='-Xms128m -Xmx384m -XX:MaxPermSize=128m -server'
I doubt it'll solve your actual problem (I think you'll need to boost
Xmx), but adding "-XX:+UseCompressedOops" to your JAVA_OPTS should
drop the memory usage on the 64bit JVM (it basically stores 32bit
pointers everywhere) - this makes a noticeable difference on memory
constrained VPS'.
Rob :)
Sad to say...
Unrecognized VM option '+UseCompressedOops' - but it is a 32 bit VM so I
should have checked that first!
Steve
--
http://www.greengecko.co.nz
Skype: sholdowa
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Steve Holdoway
2011-02-15 20:35:50 UTC
Permalink
Thanks for that Glenn, unfortunately it would just cost too much to host
then, as the client wants a NZ based solution ):

It's a shame as the bandwidth used is minute, but I can't wangle any
more out of the current SP, so I'm stuck with 768MB. managing Java based
products is always a nightmare IME!

Cheers,

Steve
Post by Glenn Enright
Afresco is one of those notoriously memory hungry webapps. To the
point where I've seen it simply refuse to run on smaller systems since
it can load all its core functions into the available JVM. If at all
possible bump your RAM up to at least 1G, which is what is recommended
in the requirements docs. And that will save you unending grief later
as the system starts to get used more. And lets not start about
plugins...
http://wiki.alfresco.com/wiki/JVM_Tuning
Regards
--Glenn
Post by Steve Holdoway
Post by Robert Coup
Hi Steve,
Post by Steve Holdoway
I'm starting using
export JAVA_OPTS='-Xms128m -Xmx384m -XX:MaxPermSize=128m -server'
I doubt it'll solve your actual problem (I think you'll need to boost
Xmx), but adding "-XX:+UseCompressedOops" to your JAVA_OPTS should
drop the memory usage on the 64bit JVM (it basically stores 32bit
pointers everywhere) - this makes a noticeable difference on memory
constrained VPS'.
Rob :)
Sad to say...
Unrecognized VM option '+UseCompressedOops' - but it is a 32 bit VM so I
should have checked that first!
Steve
--
http://www.greengecko.co.nz
Skype: sholdowa
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
--
Steve Holdoway BSc(Hons) MNZCS <***@greengecko.co.nz>
http://www.greengecko.co.nz
MSN: ***@greengecko.co.nz
Skype: sholdowa
Loading...