Using Apache Tomcat Connector (mod_jk) on OSX
Last Updated on Dimanche, 25 mars 2012 06:59 Written by Henri Gomez Mercredi, 21 mars 2012 08:48
You’ll need first mod_jk installed, follow Building Guide.
Create /etc/apache2/other/jk.conf :
# Load JK Module LoadModule jk_module libexec/apache2/mod_jk.so # JK workers.properties JkWorkersFile /etc/apache2/other/workers.properties # JK shared memory location JkShmFile /var/log/apache2/mod_jk.shm # JK logs JkLogFile /var/log/apache2/mod_jk.log # JK log level [debug/error/info] JkLogLevel info # JK timestamp log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
Create /etc/apache2/other/workers.properties
worker.list=jenkins,watch,manage # Set properties for worker jenkins (ajp13) worker.jenkins.type=ajp13 worker.jenkins.host=localhost worker.jenkins.port=8009 # status workers worker.watch.type=status worker.watch.read_only=true worker.watch.mount=/user/status/jk worker.manage.type=status worker.manage.mount=/admin/status/jk
I choose to use VirtualName Hosting and so defined one into /etc/apache2/extra/httpd-vhosts.conf :
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mbpbuilder.hgomez.net
ServerAlias mbpbuilder
ServerAdmin webmaster@mbpbuilder.hgomez.net
ErrorLog "/var/log/apache2/mbpbuilder.org-error_log"
CustomLog "/var/log/apache2/mbpbuilder-access_log" common
JkMount /* jenkins
</VirtualHost>
Building Universal Apache Tomcat Connector (mod_jk) on OSX
Last Updated on Mercredi, 21 mars 2012 08:36 Written by Henri Gomez Mercredi, 21 mars 2012 08:31
Build Universal Apache Tomcat Connector (mod_jk) for OSX follow tricks used for Apache Tomcat Native Library.
CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64'
Here is a small script to do it :
curl http://mir2.ovh.net/ftp.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.33-src.tar.gz -o tomcat-connectors-1.2.33-src.tar.gz tar xvzf tomcat-connectors-1.2.33-src.tar.gz cd tomcat-connectors-1.2.33-src/native ./configure --with-apxs=/usr/sbin/apxs CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64' make clean make
Installation is pretty simple :
sudo cp apache-2.0/.libs/mod_jk.so /usr/libexec/apache2/
You could then restart your Apache HTTPd server to get new mod_jk used :
sudo /usr/sbin/apachectl restart
SSD or not SSD ?
Last Updated on Dimanche, 18 mars 2012 01:06 Written by Henri Gomez Dimanche, 18 mars 2012 09:58
My MacBookPro is quite old now :
- MacBook Pro 5.1 (Late 2008)
- Core2Duo 2.66Ghz
- Replaced original 4Gb RAM to 8Gb DDR3 (GSkill PC8500 SQ (1066 MHz), 7-7-7-20)
- Replaced original Hitachi 320GB/5400 RPM by a 500Gb WesternDigital Black Black 7200RPM (WD5000BEKT-75KA9T0)
I run GeekBench 2.2.7 and give me a bench result of 3752 :
Benchmark Summary
Integer Score 3123 |||||||||
Floating Point Score 5493 ||||||||||||||||
Memory Score 2629 |||||||
Stream Score 2110 ||||||
Geekbench Score 3752 |||||||||||
System Information
Operating System Mac OS X 10.7.3 (Build 11D50)
Model MacBook Pro (Late 2008)
Motherboard Apple Inc. Mac-F42D86A9 Proto
Processor Intel Core 2 Duo T9550 @ 2.66 GHz
1 Processor, 2 Cores, 2 Threads
Processor ID GenuineIntel Family 6 Model 23 Stepping 10
L1 Instruction Cache 32.0 KB x 2
L1 Data Cache 32.0 KB x 2
L2 Cache 6.00 MB
L3 Cache 0.00 B
Memory 8.00 GB 1067 MHz DDR3
BIOS Apple Inc. MBP51.88Z.007E.B06.1202061253
Time to bench IOs
#!/bin/sh COUNT=2048 echo "testing pseudo-IO performances - 1st Pass" dd if=/dev/zero of=/dev/null bs=1m count=$COUNT echo "testing IO write performances - 1st Pass" dd if=/dev/zero of=PERFTEST bs=1m count=$COUNT echo "testing IO read performances - 1st Pass" dd if=PERFTEST of=/dev/null bs=1m count=$COUNT echo "testing IO read performances - 2nd Pass" dd if=PERFTEST of=/dev/null bs=1m count=$COUNT echo "testing IO write performances - 2nd Pass" dd if=/dev/zero of=PERFTEST bs=1m count=$COUNT
testing pseudo-IO performances - 1st Pass 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 0.225590 secs (9519410157 bytes/sec) testing IO write performances - 1st Pass 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 29.882202 secs (71864973 bytes/sec) testing IO read performances - 1st Pass 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 0.677308 secs (3170615711 bytes/sec) testing IO read performances - 2nd Pass 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 0.675835 secs (3177527036 bytes/sec) testing IO write performances - 2nd Pass 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 33.203725 secs (64675986 bytes/sec)
- Pseudo IO performance is justing virtual IO (/dev/zero and /dev/null), so it provide max raw IO performance : 9078 MB/s
- Write IO performance is between 61 and 68 MB/s
- Read IO performance is very high with 3023 MB/s
iStat Menu disk activity – Write Performance
Conclusions
- WD Black Edition perform pretty well on raw sequential Read Operations
- With its average 63 MB/s raw sequential Write Operations, WD is about 7 time slower than faster SSD like OCZ Vertex 3
- Crucial M4 128GB. This SSD is reported very stable and reliable. Bonus, its firmware could be updated from Mac.
- OCZ Vertex 3 120GB. This SSD is top performer in benchmarks but Googling it reports many reliability problems.

