Server :: How To Test If CPU0 And CPU1 Are Same Loaded
Apr 29, 2010
We've installed RHEL 4 (Linux Redhat) on a virtuel machine VMware. This virtuell machine has 2 CPUs (CPU0 and CPU1). We also installed the JBoss on it. But we notice, that in run time the system load of one CPU is quite often 100%. I am not sure if this is caused by the application running on Jboss or there is error by configuration on Linux.
Looking for my process monitor you see that I didn't run any program but my CPU01 100% overload and fax worked a lot,CPU02 just a bit.Ram's just 12%. So what I when wrong? I install Ubuntu 10.04 x64 - ram 4Gb - Nvidia quadro 140M. Firefox6.6
I have servers where the disk is partitioned into OS and application partitions. The application is rather sloppy with its file handles, and frequently when there is a system crash, its file systems get corrupted. This will cause fsck to halt the boot, requiring me to get on a remote console, enter the root password, and fsck the file systems.
Is there a way to have just the OS partitions get checked and mounted, then check the application systems, only after the OS is loaded, so I can ssh into the system, instead of having to use a bandwidth-hogging remote console?
The app partitions are already at fsck level 2 in /etc/fstab, but this doesn't prevent OS loading from halting. If I set the fsck level to 0, I don't want the application to start if the partitions are unavailable. Should I just leave the fsck level at 0? Or should have the partitions marked "noauto", then have a startup script run fsck and mount the app partitions?
I did a a basic install of postfix and dovecot instead of using courier-pop and courier-imap. This is only send and receiving e-mail locally within the test network 10.7.0.X and 10.0.0.X. I used:
[URL]
my postfix.conf is;
PHP Code:
[code]....
This is the error when I send an email from a local machine on the 10.0.0.X network.
PHP Code:
Jan 20 17:05:48 testbox postfix/smtpd[2491]: warning: Illegal address syntax from unknown[10.0.0.111] in MAIL command: <test@10.0.0.112>
I followed the Wiki guide for configuring my Postfix server for SASL / TLS. I don't get any errors and I assume it's working but when I try and test SASL (saslauthd), I don't get the response noted according to the Wiki and I don't understand why.
what is happening on my Centos virtual server (ps I'm having a great time re-learning Linux after a large gap and usually try and find out myself but this has me confused) First thing I did was install Tomcat and try and change the port to 80 using iptables -nat and it complained a kernel module was missing. Instead setup Apache to redirect requests so that's now working I then tried to install CSF firewall and the validation perl script returned fatal errors so I assumed OK my virtual server Kernel is restricted and used denyhosts instead which is working great
Here's the confusion.. I later retried the csftest script and it now works including all the iptables and nat stuff that fataled before. I've not rebooted or changed anything except run denyhosts and the postgres daemon + ended a few daemons that I didn't need (eg pickup,tlsmgr,courier,postfix,qmgr,saslauthd) Running lsmod returns nothing and /proc/modules is zero bytes so I'm not able to tell what is loaded? I'm tempted to try and get Tomcat redirecting via iptables and see what happens but if it works I don't like that something seems to have changed.. before I ran it direct as root now I'm SU into root from another login
I have /var/log/audit and /var/log/audit.log owned by root and 600 permissions. I've also removed and made an empty /var/log/audit directory when that did not we work either. I can start the service after boot up, but it is not coming up automatically even when configured by chkconfig. I also get this after I attempt a restart...
Stopping auditd: [ OK ] Error deleting rule (Operation not permitted) Starting auditd: [ OK ] The audit system is in immutable mode, no rules loaded
A tail of my /var/log/messages shows this... Nov 23 16:45:18 hostname kernel: type=1302 audit(1290548718.524:73): item=1 name="/var/run/auditd.pid" inode=131143 dev=fd:01 mode=0100644 ouid=0 ogid=0 rdev=00:00 obj=user_u:object_r:var_run_t:s0 Nov 23 16:45:18 hostname kernel: type=1300 audit(1290548718.618:74): arch=c000003e syscall=87 success=no exit=-2 a0=7fff730b2f85 a1=7fff730b2f85 a2=2 a3=0 items=1 ppid=6243 pid=6248 auid=1111 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm="rm" exe="/bin/rm" subj=user_u:system_r:unconfined_t:s0 key="delete" Nov 23 16:45:18 hostname kernel: type=1307 audit(1290548718.618:74): cwd="/" Nov 23 16:45:18 hostname kernel: type=1302 audit(1290548718.618:74): item=0 name="/var/run/auditd.pid" inode=131073 dev=fd:01 mode=040755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:var_run_t:s0 Nov 23 16:45:18 hostname kernel: type=1300 audit(1290548718.620:75): arch=c000003e syscall=87 success=yes exit=0 a0=7fff9b776f81 a1=7fff9b776f81 a2=2 a3=0 items=2 ppid=6243 pid=6249 auid=1111 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm="rm" exe="/bin/rm" subj=user_u:system_r:unconfined_t:s0 key="delete" Nov 23 16:45:18 hostname kernel: type=1307 audit(1290548718.620:75): cwd="/" Nov 23 16:45:18 hostname auditd[6260]: Started dispatcher: /sbin/audispd pid: 6262 Nov 23 16:45:18 hostname audispd: af_unix plugin initialized Nov 23 16:45:18 hostname audispd: audispd initialized with q_depth=80 and 1 active plugins Nov 23 16:45:18 hostname auditd[6260]: Init complete, auditd 1.7.17 listening for events (startup state enable)
I have a BIND server that I'm setting up with different views. There is another server out on the public Internet that currently handles all inquiries for this domain. I had installed the Yum packages, chroot, etc. and edited the config files by hand. When that didn't work, I erased the server and started over using Webmin to build everything for me. Same result. I want to setup and verify everything is working on this new server before I take it into production.This is in /var/log/messagesQuote:
Jun 13 21:33:20 dns1 named[13838]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 -u named Jun 13 21:33:20 dns1 named[13838]: adjusted limit on open files from 1024 to 1048576
I am trying to install mysql 5.1.44..so i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command
Installing MySQL system tables... 100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test 100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
Does anybody have experience with linux tuning. I`m realy interesting about sysctl.conf tuning settings for batch(3d rendering, phisycs simulations, etc.) servers. Does anybody has an experience with linux tuning - I mean memory and CPU settings for heavy loaded systems. What kind of settings You have in Your clusters ? I`m working with Red Hat Enterprise 5 x86_64.
I have just been told that httpd was not running on my Centos virtual server. It seems that my hosting company rebooted my server 2 days ago and that httpd restart failed due to:
Starting httpd: httpd: Syntax error on line 213 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/proxy_ajp.conf: Cannot load /etc/httpd/modules/mod_proxy_ajp.so into server: /etc/httpd/modules/mod_proxy_ajp.so: undefined symbol: proxy_module
I had worked around and forgotten about this some time ago. The problem arose because the most recent httpd update installed proxy_ajp.conf into /etc/httpd/conf.d which was then loaded on restart The trouble is I do not use mod_proxy (I think just to try and get a lean and mean web server) and proxy_ajp.conf does not check if mod_proxy is loaded before it tries to LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
Hence httpd fails to restart. RedHats's bug tracker lists this as an old issue (which was never resolved) [URL] My workaround was to rename proxy_ajp.conf to proxy_ajp.conf.orig so that httpd would start up correctly. However any updates simply reinstall proxy_ajp.conf and so IMO the problem needs to be resolved at source. how to ensure that httpd updates do not bite me in the future? Do I really have to run mod_proxy whether or not I need it?
I need to a software can test my apache server under high traffic.for example can simulate 1000 user request to my server and give me good statistic. I have found this product, but that is not free If any one know such as this program I will happy for inform that.
I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the vbr.tr and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.
This is an odd question, but I can't figure out why my nagios emails aren't being sent. In fact, I got my last one three days ago so it *should* be working.
I have everything in contacts.cfg, and the admin page tells me that the following should be sent: Unknown, Warning, Critical, Recovery, Flapping, Downtime
I also have notify-service-by-email and notify-host-by-email.
I have no idea if nagios emails just don't want to be sent or what -- and I'm not even sure if the nagios emails are even trying to be sent.
Here's my contacts.cfg code...
There's nothing in /var/log/nagios besides the mention of that email address in objects.cache, so I have no idea if an email was attempted to be sent. My sendmail queue is empty as well.
Meanwhile, I have some downtime on a service and didn't get notified. Only the web interface is helping me out here. Any ideas why I am not getting email? How can I run a test to see if everything's working okay?
Newbie on the block with Centos 5.3 on a test server and and Ubuntu on a test workstation Note the wiki on VNC for a windows workstation but presume I could do this more easily from "Jaunty" (Ubuntu v 9.04)
I succeeded in setting up a vnc server on a fedpra9 tested it locally and it was successfully connected but no connection done from other machine in the network , even though they can see each othervnc server is pingable se linux is disabled
I have downloaded the Apache web server so I can set up a local web server to test my PHP pages. The download automatically went into the default "Downloads" folder instead of the /opt folder where the Apache instructions said to download the file to. I have tried to move the file from the Downloads folder to the /opt folder but am denied access - says I don't have enough privileges (or some such thing?). Bummer.
So I tried to use the terminal to install the file that I downloaded from Apache (following their instructions - actually copied/pasted the command line so there would be no typo problem) - no joy.
The first thing I was instructed to do was to enter the su command, which I did, and was asked for a password. I have tried every password I have ever used on this system and I receive the following:
su: Authentication failure
and it returns me to the prompt. What is my password?
I checked the archives for similar problems and came up with zero relevant hits.
I do not know much at all when it comes to setting up hardware--servers, switches, etc.
I have a 1701HG 2Wire wireless router that I use for my home network. I have an old pentium 3 tower that is just laying around, and I want to be able to host my projects on it for testing. Basically, I just want to be able to do everything on my laptop and then upload it to the server for testing.
I have set up an Ubuntu LAMP server on the desktop and am able to do everything I want via SFTP; however, I want to be able to type in "projectx.local" in a browser on my laptop to go to one test site, "projectz.local" to go to another, etc.
Is this possible, since I do not have the server set up as my gateway? It is merely connected to the router like everything else.
I have two machines, one used as client and the other as server. I want to check if the port 7080 on server reachable from the client machine.How can I do that? Using telnet?
I'm looking for a script which is testing how complex an "added" string is, for example like the user is changing his password and check how complex it is, if it included letters (lower/upper case), numbers and other characters.Im doing this for password check, the user type's the password and must be 6 characters long, have upper case letters lets say and numbers and so on.If anyone knows where I could find some bash script which is doing this, it would be really cool.
I need to run "Selenium" test scripts (written inside TestNG) on a headless linux server (Red Hat Enterprise Linux Server release 5.3) using Xvfb. while executing the script, I get the following warnings in the "server.log" file.Warning: Cannot allocate colormap entry for "#c0c0c0"Warning: Cannot allocate colormap entry for default background.This warnings occurs when the script try to launch Firefox. Firefox is not getting launched and the code gets hanged in the middle, without executing any test case.I suspect the problem could be with the Xvfb's screen resolution. screen resolution might be lesser than firefox'sexpected resolution.we can be able to specify our own display in POM file using <display> tag.
Can't access localhost test page, but opens localhost page when I use full dns, at least from local network machines?
Running slackware13.1, Httpd2.2.15, 2wire gateway. Firewall web&http pinholes for ports 80,443. Port 80 is working.
Code:
Returns error:
Quote:
Code:
Code:
Added 4400host.net to Resolve DNS on 2Wire Gateway(Never had to do this before to access httpd test from same machine or network machine?
Changed HTTPD.conf
Code:
Code:
Quote:
"It Works!"
Never encountered this before, usually httpd test worked for "localhost" with minimal effort. I am concerned to procceed with this odd behavior. Has anyone else encountered this configuration is?
I seem to having some strange issues with my new sendmail server and was hoping that somebody can offer some assistance with this issue. I recently tried to setup an enviromental monitor that sends alerts via email using a dedicated email account I created on my sendmail server. For whatever reason, it does not seem to be able to send emails, and I have verified the account credentials multiple times.
So I attempted to run a telnet SMTP test to determine what the problem was. I was able to connect and send the emails using this test perfectly fine from my local subnet, however I ran into problems attempting this test from the outside world. When I connect the SMTP PORT 25 from the outside world, I get what seems to be a malformed SMTP greeting.
I'm a web developer and I am building a site on a CMS that has issues moving from a WAMP server to LAMP. The live server is LAMP and I am running Windows 7. I don't want to run into problems moving from the test server to the live server, so I was wondering if I could somehow run Linux using a virtual machine (using Windows Virtual PC which I think supports Linux or VirtualBox) and then using a Linux equivalent of WAMP2 server as a test server. how to do this and what the best Linux distribution to use would be?