View Single Post
  #6   (View Single Post)  
Old 3rd June 2008
fenrisW0lf fenrisW0lf is offline
Port Guard
 
Join Date: May 2008
Posts: 17
Default

Hi all, thanks for the replies.

The system is a p4 1.4GHz with 128mb or ram. Everything was working OK till I upgraded from 3.1 to 4.0 (I did a full install after trying an upgrade with no luck). In the full install I copied the configuration files over for apache (httpd.conf) from the old version.

The odd thing is there should be no load on this server at all except for me as this is a test box that I use before doing anything with my production box (even my production box is only used by a small team of developers, 5 people at most). In addition I used to have a very similar setup on an ancient amdk6-2 400mhz system with 64mb of ram without any problems.

Here is the result of top when I don't access the dokuwiki site located on the server. It looks as though swap isn't being used.
Code:
load averages:  0.00,  0.00,  0.00                  up 0 days, 11:41   08:07:46
39 processes:  38 sleeping, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Memory: 28M Act, 568K Wired, 8220K Exec, 10M File, 156M Free
Swap: 129M Total, 129M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
   11 root      18    0     0K   16M syncer     0:03  0.00%  0.00% [ioflush]
 1635 root      28    0   184K 1064K CPU        0:00  0.00%  0.00% top
 2961 troy.wil  18    0   228K  992K pause      0:00  0.00%  0.00% csh
 3026 root      18    0   228K  984K pause      0:00  0.00%  0.00% csh
    9 root      14    0     0K   16M crypto_w   0:00  0.00%  0.00% [cryptoret]
    5 root      10    0     0K   16M usbevt     0:00  0.00%  0.00% [usb0]
    6 root      10    0     0K   16M usbtsk     0:00  0.00%  0.00% [usbtask-hc]
    7 root      10    0     0K   16M usbtsk     0:00  0.00%  0.00% [usbtask-dr]
    8 root      10    0     0K   16M usbevt     0:00  0.00%  0.00% [usb1]
    1 root      10    0   100K  852K wait       0:00  0.00%  0.00% init
  755 root      10    0   248K  812K nanoslee   0:00  0.00%  0.00% cron
  105 root       3    0    56K  828K ttyin      0:00  0.00%  0.00% getty
  104 root       3    0    56K  828K ttyin      0:00  0.00%  0.00% getty
  103 root       3    0    56K  828K ttyin      0:00  0.00%  0.00% getty
  102 root       3    0    56K  828K ttyin      0:00  0.00%  0.00% getty
  100 root       2    0  5080K 6540K select     0:00  0.00%  0.00% httpd
 2402 root       2    0   408K 3232K netio      0:00  0.00%  0.00% sshd
  109 www        2    0  5120K 2768K kqread     0:00  0.00%  0.00% httpd
 3058 troy.wil   2    0   408K 2448K select     0:00  0.00%  0.00% sshd
  415 root       2    0   296K 1452K select     0:00  0.00%  0.00% sshd
  151 root       2    0   640K 1124K select     0:00  0.00%  0.00% dhclient
  699 postfix    2    0   276K 1096K kqread     0:00  0.00%  0.00% qmgr
 3027 postfix    2    0   216K 1056K kqread     0:00  0.00%  0.00% pickup
  629 root       2    0   196K  992K kqread     0:00  0.00%  0.00% master
  222 root       2    0   188K  864K kqread     0:00  0.00%  0.00% syslogd
  758 root       2    0    72K  848K kqread     0:00  0.00%  0.00% inetd
  107 www       -4    0  5272K 6268K semwait    0:00  0.00%  0.00% httpd
  108 www       -4    0  5260K 5780K semwait    0:00  0.00%  0.00% httpd
  106 www       -4    0  5384K 4744K semwait    0:00  0.00%  0.00% httpd
  878 www       -4    0  5120K 2768K semwait    0:00  0.00%  0.00% httpd
  783 www       -4    0  5120K 2768K semwait    0:00  0.00%  0.00% httpd
   80 www       -4    0  5120K 2768K semwait    0:00  0.00%  0.00% httpd
    4 root      -6    0     0K   16M atath      0:00  0.00%  0.00% [atabus1]
   48 root      -6    0     0K   16M physiod    0:00  0.00%  0.00% [physiod]
    3 root      -6    0     0K   16M atath      0:00  0.00%  0.00% [atabus0]
    0 root     -18    0     0K   16M schedule   0:00  0.00%  0.00% [swapper]
   12 root     -18    0     0K   16M aiodoned   0:00  0.00%  0.00% [aiodoned]
    2 root     -18    0     0K   16M smtaskq    0:00  0.00%  0.00% [sysmon]
   10 root     -18    0     0K   16M pgdaemon   0:00  0.00%  0.00% [pagedaemon]
The funny thing is if I fire up the url to load the dokuwiki site (I even have a clean fresh install with virtually nothing in it) things go through the roof and I have to hard reset the box. Nothing gets written to the log files (I deleted the logs in /var/log/httpd before loading the url to make sure that I wouldn't miss any new entries).

The only thing that I can think of is that there is something wrong with my apache installation or php5. I had php5 and apache installed on NetBSD v3.1 and I copied over the configuration files so there shouldn't be any configuration differences.

Any pointers on things that I could try or look for?

Is it safe to use the old configuration files (particularly from v3.1) in v4.0?
Reply With Quote