Walter Vaughan wrote:

Mark Thomas wrote:

I have tried installing ofBiz on freeBSD 4.11, but it hangs during startup.


First, the only testing I have done with Apache OFBiz is on a 6.1 box.
What's the hardware like on your box? FreeBSD 4.11 will run in character mode just fine with just 32 Meg of memory, which from my limited POV will not run ofBiz at all. Also, threads have been drastically improved with current 5 and 6 series so it may behoove you to pick up a cheap box for testing with 1 gig memory and work with enough memory for ofBiz to do its thing (Note: FreeBSD 6 will also run on 32 meg memory, my point is that you may be running out of resources)

Thanks for the ideas there, I hadn't thought about resources being the problem. The box is an HP Netserver, Pentium III, 1.2Gb with 1gb of RAM, so I would have thought it had enough grunt.

My 'top' looks like this after the OFBiz has been running and hanging for a few minutes :

last pid: 31168; load averages: 0.00, 0.04, 0.04 up 3+20:33:48 08:33:34
96 processes:  1 running, 95 sleeping
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 213M Active, 604M Inact, 109M Wired, 42M Cache, 112M Buf, 36M Free
Swap: 2032M Total, 132K Used, 2032M Free

 PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
31168 root      28   0  2036K  1020K RUN      0:00  1.92%  0.63% top
 298 root       2   0  4936K  3832K select  36:03  0.00%  0.00% snmpd
 258 mysql      2   0   289M 20228K poll     2:14  0.00%  0.00% mysqld
143 root -6 0 872K 296K piperd 0:23 0.00% 0.00% readproctitle
30150 root       2   0   580M 73596K poll     0:23  0.00%  0.00% java
29853 root       2   0   218M 22092K poll     0:16  0.00%  0.00% java
 142 root      10   0   924K   444K nanslp   0:08  0.00%  0.00% svscan
 350 uucp       2   0   968K   632K select   0:07  0.00%  0.00% upsd
 274 root      10   0   928K   436K nanslp   0:07  0.00%  0.00% svscan
16412 zope       2   0 34868K 32968K poll     0:07  0.00%  0.00% python2.3
 285 qmails     2   0   976K   544K select   0:06  0.00%  0.00% qmail-send
 153 root       2   0 14832K  6300K select   0:06  0.00%  0.00% httpd
 100 root       2   0   992K   624K select   0:05  0.00%  0.00% syslogd
 365 zope       2   0  6108K  4600K poll     0:04  0.00%  0.00% python2.3
 294 qmaill    -6   0   904K   444K piperd   0:04  0.00%  0.00% multilog
 112 root       2   0  2604K  1240K select   0:03  0.00%  0.00% sshd
 287 root       2   0  1308K   752K accept   0:03  0.00%  0.00% tcpserver

The two java processes are the OFBiz processes - they do seem to be taking a lot of memory there, perhaps that's the prob?


a 'vmstat' shows this  :
procs      memory      page                    disks     faults      cpu
r b w avm fre flt re pi po fr sr am0 md0 in sy cs us sy id 2 11 0 1360368 76500 149 0 0 0 135 5 0 0 233 4333 57 3 1 96



Second, what Java SDK did you use? Native or Linux? Did you use the ports collection method to install? Mine looks like this:

$ java -version
java version "1.4.2-p8"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p8-filepro_04_may_2006_11_30) Java HotSpot(TM) Client VM (build 1.4.2-p8-filepro_04_may_2006_11_30, mixed mode)

My Java should be ok, here's what I get :
java version "1.4.2-p7"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p7-mark_07_may_2005_14_30) Java HotSpot(TM) Client VM (build 1.4.2-p7-mark_07_may_2005_14_30, mixed mode)

Third, what user are you starting up as? Are you logging in as a member of the wheel group and su'ing into root, or running from the console as root?

I'm logging in remotely (the box is in a server room a few hours drive away) and su'ing to root. I'm then doing the "./ant run-install" as root.

Thanks again,
Mark

Reply via email to