Page 1 of 1

Problems on Debian Lenny

PostPosted:Mon May 04, 2009 7:15 pm
by mathias_ewald
Hi everybody,

I am trying to install OpenKM 3.0 on a Debian Lenny XEN Domain. 256 MB RAM should be sufficient, shouldn\'t it? Even if it\'s not I doubt, the following can be caused by insufficient RAM:

I am starting OpenKM as an unprivileged user \"openkm\":
Code: Select all
openkm:/opt$ ./OpenKM-3.0_JBoss-4.2.2.GA/bin/run.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/OpenKM-3.0_JBoss-4.2.2.GA

  JAVA: java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

  CLASSPATH: /opt/OpenKM-3.0_JBoss-4.2.2.GA/bin/run.jar

=========================================================================

19:06:21,918 INFO  [Server] Starting JBoss (MX MicroKernel)...
19:06:21,926 INFO  [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
19:06:21,927 INFO  [Server] Home Dir: /opt/OpenKM-3.0_JBoss-4.2.2.GA
19:06:21,927 INFO  [Server] Home URL: file:/opt/OpenKM-3.0_JBoss-4.2.2.GA/
19:06:21,927 INFO  [Server] Patch URL: null
19:06:21,927 INFO  [Server] Server Name: default
19:06:21,927 INFO  [Server] Server Home Dir: /opt/OpenKM-3.0_JBoss-4.2.2.GA/server/default
19:06:21,928 INFO  [Server] Server Home URL: file:/opt/OpenKM-3.0_JBoss-4.2.2.GA/server/default/
19:06:21,928 INFO  [Server] Server Log Dir: /opt/OpenKM-3.0_JBoss-4.2.2.GA/server/default/log
19:06:21,928 INFO  [Server] Server Temp Dir: /opt/OpenKM-3.0_JBoss-4.2.2.GA/server/default/tmp
19:06:21,941 INFO  [Server] Root Deployment Filename: jboss-service.xml
19:06:22,578 INFO  [ServerInfo] Java version: 1.6.0_12,Sun Microsystems Inc.
19:06:22,578 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 11.2-b01,Sun Microsystems Inc.
19:06:22,578 INFO  [ServerInfo] OS-System: Linux 2.6.26-1-xen-amd64,amd64
19:06:23,245 INFO  [Server] Core system initialized
19:06:25,081 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
19:06:25,083 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
19:06:26,363 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
19:06:26,363 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
19:06:26,648 INFO  [TransactionManagerService] Starting recovery manager
19:06:26,737 INFO  [TransactionManagerService] Recovery manager started
19:06:26,737 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
19:06:31,535 INFO  [EJB3Deployer] Starting java:comp multiplexer
19:06:32,276 INFO  [STDOUT] no object for null
19:06:32,277 INFO  [STDOUT] no object for null
19:06:32,289 INFO  [STDOUT] no object for null
19:06:32,300 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
19:06:32,305 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
./OpenKM-3.0_JBoss-4.2.2.GA/bin/run.sh: line 246:  3435 Killed                  \"$JAVA\" $JAVA_OPTS -Djava.endorsed.dirs=\"$JBOSS_ENDORSED_DIRS\" -classpath \"$JBOSS_CLASSPATH\" org.jboss.Main \"$@\"
openkm:/opt$
The last line often appears after a few minutes. During that time I can see several ports opening on the machine.
Code: Select all
openkm:/opt/OpenKM-3.0_JBoss-4.2.2.GA/server# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 127.0.0.1:3873          0.0.0.0:*               LISTEN      1000       17959       3491/java       
tcp        0      0 127.0.0.1:1098          0.0.0.0:*               LISTEN      1000       17929       3491/java       
tcp        0      0 0.0.0.0:59147           0.0.0.0:*               LISTEN      1000       17941       3491/java       
tcp        0      0 127.0.0.1:1099          0.0.0.0:*               LISTEN      1000       17931       3491/java       
tcp        0      0 0.0.0.0:57454           0.0.0.0:*               LISTEN      1000       17933       3491/java       
tcp        0      0 127.0.0.1:8083          0.0.0.0:*               LISTEN      1000       17927       3491/java       
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          2756        1165/sshd       
tcp        0      0 127.0.0.1:4444          0.0.0.0:*               LISTEN      1000       17943       3491/java       
tcp        0      0 127.0.0.1:4445          0.0.0.0:*               LISTEN      1000       17945       3491/java       
tcp        0      0 127.0.0.1:4446          0.0.0.0:*               LISTEN      1000       17947       3491/java       
tcp        0      0 0.0.0.0:38271           0.0.0.0:*               LISTEN      1000       17934       3491/java       
tcp6       0      0 :::22                   :::*                    LISTEN      0          2754        1165/sshd       
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           103        9873        2425/avahi-daemon: 
udp        0      0 0.0.0.0:54394           0.0.0.0:*                           103        9875        2425/avahi-daemon: 
udp6       0      0 :::60232                :::*                                103        9876        2425/avahi-daemon: 
udp6       0      0 :::5353                 :::*                                103        9874        2425/avahi-daemon: 
openkm:/opt/OpenKM-3.0_JBoss-4.2.2.GA/server#
However, none of the open ports is 8080.


cu
mathias

Re:Problems on Debian Lenny

PostPosted:Tue May 05, 2009 6:58 am
by jllort
Your server only have 256MB ? or you want to set only 256MB for jboss.

Take a look at this java setting -Xmx512m ( on run.sh -> reservation for 512mb ) change it to lower. Memory is really cheap, we recommend on smaller installation 1GB RAM. Really OpenKM uses lower hardware resources but jboss needs some minimal ones.

Re:Problems on Debian Lenny

PostPosted:Tue May 05, 2009 7:18 am
by mathias_ewald
Hmm - that was easy :D

Yes memory is cheap - in a virtualized environment it might be not ;)


How can I have the application listen at 0.0.0.0 instead of 127.0.0.1?
Code: Select all
openkm:~# netstat -tulpen | grep java
tcp        0      0 127.0.0.1:3873          0.0.0.0:*               LISTEN      1000       6338        1462/java       
tcp        0      0 0.0.0.0:36488           0.0.0.0:*               LISTEN      1000       6203        1462/java       
tcp        0      0 127.0.0.1:8009          0.0.0.0:*               LISTEN      1000       6447        1462/java       
tcp        0      0 127.0.0.1:1098          0.0.0.0:*               LISTEN      1000       6192        1462/java       
tcp        0      0 127.0.0.1:1099          0.0.0.0:*               LISTEN      1000       6194        1462/java       
tcp        0      0 0.0.0.0:49804           0.0.0.0:*               LISTEN      1000       6196        1462/java       
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      1000       6446        1462/java       
tcp        0      0 127.0.0.1:8083          0.0.0.0:*               LISTEN      1000       6190        1462/java       
tcp        0      0 127.0.0.1:4444          0.0.0.0:*               LISTEN      1000       6205        1462/java       
tcp        0      0 127.0.0.1:8093          0.0.0.0:*               LISTEN      1000       6512        1462/java       
tcp        0      0 127.0.0.1:4445          0.0.0.0:*               LISTEN      1000       6207        1462/java       
tcp        0      0 0.0.0.0:33853           0.0.0.0:*               LISTEN      1000       6197        1462/java       
tcp        0      0 127.0.0.1:4446          0.0.0.0:*               LISTEN      1000       6209        1462/java       
openkm:~#

I created a SSH tunnel but got \"connection failed\":
Code: Select all
mathias@wizard:~$ ssh -L 8080:10.0.0.30:8080 root@10.0.0.30
root@10.0.0.30\'s password: 
Linux openkm 2.6.26-1-xen-amd64 #1 SMP Fri Mar 13 21:39:38 UTC 2009 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue May  5 07:08:33 2009 from wizard.local
openkm:~# channel 3: open failed: connect failed: Connection refused

I\'m not sure why this is the case. Are you?


cu
mathias

Re:Problems on Debian Lenny

PostPosted:Tue May 05, 2009 10:00 am
by jllort
run.sh with option -b 0.0.0.0 then jboss it\'ll be set on all network interfaces.

Re: Problems on Debian Lenny

PostPosted:Wed Jun 02, 2010 11:11 am
by beezza
From among Debian, SuSE, Fedora and CentOS, which should I chose? I've been using Red Hat Linux Enterprise edition for quite some time now. I'm not too fond of the fact that I need to pay to update. So I'm planning to change to a different distro. So please help me select one. Thanks in advance!
_____________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator

Re: Problems on Debian Lenny

PostPosted:Wed Jun 02, 2010 7:33 pm
by jllort
I recommend ubuntu. OpenKM develovers we work in ubuntu desktop and the most easy way to install OpenKM with all features is ubuntu distribution.