Re: FreeBSD MySQL Performance Tunning suggestions???

2008-06-05 Thread Antony T Curtis

Hi,

FreeBSD 7 should offer much better performance for MySQL. The FreeBSD  
kernel developers have found ways to relieve some of the kernel  
bottlenecks which permit multithreaded applications to operate much  
better.


Regards,
Antony.

On 3 Jun 2008, at 03:43, VeeJay wrote:


Hi Guys

I need some performance tuning suggestions/help from you.

At my job, I am going to build a Web Server with

1. FreeBSD 7.0-RELEASE amd64
2. Apache 2.2.8
3. PHP 4.4.8 (or may be PHP5, what do you suggest?)

Server's hardware configuration is as follow:

2  x  Quad Core Xeon E5450 3.0GHz,2x6MB,1333FSB
16GB (8x2GB Dual Rank DIMMs) 667MHz FBD
6  x  450GB SAS 15k 3.5 HD Hot Plug
PERC 6/i, Integrated Controller Card x6 backplane
PE2950 III C5 MSS R10 Add-in PERC 5/i / 6/i 1 S
TCP/IP Offload Engine 2P
Broadcom TCP/IP Offload Engine functionality (TOE) Not Enabled

For FreeBSD 7.0-RELEASE amd64 Which MySQL 5.0 would be used ?
1. FreeBSD 7.x (x86_64)
 or
2. FreeBSD 6.x (x86)

I have done some googling and made these configuration files for  
Apache and

MySQL?

Apache:
httpd.conf- 
start

# =
# Basic settings
# =
ServerType standalone
ServerRoot /usr/local/apache
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
ResourceConfig /dev/null
AccessConfig /dev/null
# =
# Performance settings
# =
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 256
MaxRequestsPerChild 0
# =
# Apache modules
# =
ClearModuleList
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_dir.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_php4.c
AddModule mod_rewrite.c
AddModule mod_security.c
AddModule mod_setenvif.c
# =
# General settings
# =
Port 80
User apache
Group apache
ServerAdmin [EMAIL PROTECTED]
UseCanonicalName Off
ServerSignature Off
HostnameLookups Off
ServerTokens Prod
IfModule mod_dir.c
   DirectoryIndex index.html
/IfModule
DocumentRoot /home/apache/www
# =
# Access control
# =
Directory /
   Options None
   AllowOverride None
   Order deny,allow
   Deny from all
/Directory
Directory /home/apache/www
   Order allow,deny
   Allow from all
/Directory
Directory /home/apache/www/vhosts/mydomain.com/public_html
   Order allow,deny
   Allow from all
/Directory
# =
# MIME encoding
# =
IfModule mod_mime.c
   TypesConfig /usr/local/apache/conf/mime.types
/IfModule
DefaultType text/plain
IfModule mod_mime.c
   AddEncoding x-compress Z
   AddEncoding x-gzip gz tgz
   AddType application/x-tar .tgz
   AddType application/x-httpd-php .html
/IfModule
# =
# Logs
# =
LogLevel warn
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i 
\

combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent
ErrorLog /var/apache/logs/error_log
CustomLog /var/apache/logs/access_log combined
# =
# Virtual hosts
# =
NameVirtualHost *
VirtualHost *
   DocumentRoot /home/apache/www/vhosts/mydomain.com/public_html
   ServerName www.mydomain.com
   ServerAlias mydomain.com
   ErrorLog /var/apache/logs/vhosts/mydomain.com/error_log
   CustomLog /var/apache/logs/vhosts/mydomain.com/access_log  
combined

   IfModule mod_rewrite.c
RewriteEngine on
RewriteRule ^/([a-z]{2})/index.html$ /index.html?topicid=$1
   /IfModule
   ErrorDocument 400 /page_error.html
   ErrorDocument 401 /page_error.html
   ErrorDocument 403 /page_error.html
   ErrorDocument 404 /page_error.html
   ErrorDocument 500 /page_error.html
/VirtualHost
# 
# Logging GET/POST requests, defending against
# Cross-Site-Scripting (XSS) and SQL Injection attacks
# 
IfModule mod_security.c
   AddHandler application/x-httpd-php .html

   #Turn the filtering engine On or Off
SecAuditEngine On
   # Only log suspicious requests
SecAuditEngine RelevantOnly
SecAuditLog /var/apache/logs/audit_log
SecFilterScanPOST On
SecFilterEngine On

SecFilterDefaultAction deny,log,status:500

Re: Vale Cameron Grant (cg@freebsd.org), 8 July 1976 - 20 March 2005

2005-03-22 Thread Antony T Curtis
On Tue, 2005-03-22 at 14:52 +, David Gerard wrote:
 For those who haven't heard, FreeBSD committer Cameron Grant
 died suddenly on Sunday morning.

From someone who has only met Cameron once and a few limited email
exchanges, this is a great loss to the FreeBSD community, and to the
world as he is a man with a keen mind and a big heart.

My thoughts go out to Kris who I hope gets every help she needs to get
through this most difficult time.


-- 
Antony T Curtis, BSc.   UNIX, Linux, *BSD, Networking
[EMAIL PROTECTED]C++, J2EE, Perl, MySQL, Apache
IT Consultancy.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JBoss3 Port on FreeBSD 4.8

2003-09-27 Thread Antony T Curtis
On Sat, 2003-09-27 at 10:31, Mike C. wrote:
 Hello all,
 
 After searching for help/forums on the net, I'm still scratching my head
 trying to figure out why jboss3ctl start always gets stuck at the
 [WebService] Creating stage.
 
 I've set the server directory/files ownership to www as suggested by
 other users who had similar problem.  I'm using FreeBSD's native build of
 JDK-1.4.1 from the Port Collection.

My experience says that the only native JVM which runs JBoss is JDK1.3.1
The 1.4.1 JDK still has a few problems.

-- 
Antony T Curtis BSc Unix Analyst Programmer
http://homepage.ntlworld.com/antony.t.curtis/


signature.asc
Description: This is a digitally signed message part