Dealing with slow tests and JRuby on Rails

December 9th, 2008

I have started using JRuby in a Rails project and mostly I am very happy with it. However, one major issue is that Rails startup under JRuby is very slow… and I mean veeery slow. Running a single unit test under JRuby takes 15-16 seconds while running the same test using Ruby (MRI) takes around 0.15 seconds, a factor 100.

The reason for this is that startup of the Rails environment takes a long time under JRuby. When everything is up and running however, performance is great!

So, how to deal with this?

Read the rest of this entry »

VMware server performance

July 18th, 2008

We started using VMware server for virtualization running CentOS 5 as host and CentOS 5 and other operating systems as guests. The servers were Dell PowerEdge 2950s with 4 SAS disks in RAID-10 setup.
However, performance was really poor especially for I/O intensive applications. After browsing around a bit I did the following:

  1. Change I/O scheduler (host and guest)
    echo deadline > /sys/block/sda/queue/scheduler
  2. Increase disk read-ahead (host and guest)
    /sbin/blockdev –setra 32768 /dev/sda
  3. Set size of /dev/shm on host server to same as memory size on server (8 GB) via
    mount -o remount,size=8G /dev/shm
    And adding an entry in /etc/fstab for it to be set up on boot-time as well
    tmpfs              /dev/shm           tmpfs   defaults,size=8G  0 0
  4. And then add some configuration options to the .vmx files (restart of virtual machines needed after the change):
    mem.ShareScanTotal=0
    mem.ShareScanVM=0
    mem.ShareScanThreshold=4096
    sched.mem.maxmemctl=0
    sched.mem.pshare.enable = “FALSE”
    mainMem.useNamedFile = “FALSE”
    MemTrimRate = “0″
    MemAllowAutoScaleDown = “FALSE”

This indeed the trick. Performance increased significantly!

Specifically I/O intensive operations does not affect the host server and all virtual machines as previously.

Adding new subnet to external Netscreen interface

July 18th, 2008

We ran out of public IP addresses on our site where we map public IP addresses to services on internal servers via MIPs.

When we received more IP addresses in a different subnet I could not easily figure out how to use them until I ran across an article on the Juniper support site.

The solution was really simple:

  1. Add a routing entry for the new subnet on the external interface (ethernet1) with “0.0.0.0″ as gateway
    Network -> Routing -> Destination -> New
  2. Add MIPs using addresses in the new IP subnet

How simple and it works great!

SMPP benchmark tools

March 17th, 2007

It’s been a while since I got the time to write anything here. There has been a lot at work and some family stuff to take care of as well. Also I have been trying to get a hold Ruby on Rails, which is a really nice environment to build nice little web applications.

Yesterday we finally managed to publish our light-weight SMPP benchmarking tools as well on smpp.com. The emgload/emgsink utilities can really bring any SMSC on it’s knees. It also supports SMTP so it can be used to check mail server performance as well. On a Linux with Intel Xeon 3.0 GHz CPUs we reach around 25000 messages per second using emgload directly connected to emgsink.

Cheap diet online phentermine pill
Free generic viagra
Phentermine priority mail
Thalidomide
Treat crohns disease with viagra
Tramadol dog
Teniposide
Viagra erection
Discount drug phentermine
Phentermine next day
How to discontinue the use of phentermine
Viagra by mail
Xanax
Flexeril
Terbinafine
Cialis compare levivia viagra
Succinylcholine
Generic viagra from india
Promazine
Diovan
Phentermine 37.5 cheap
Withdraw xanax
Lindane
Buy herbal viagra
Buy viagra online
Phentermine 15 mgs
Lawsuits involving blindness caused by viagra
Imuran
Benicar
Ecotrin
Levoxyl
Phenprocoumon
Woman taking viagra
Pharmacy phentermine affiliate
Viagra commercial
Online pharmacy and phentermine
Alcohol hydrocodone
Buy hydrocodone where
Viagra
Mylan xanax
Dimenhydrinate
Cheapest phentermine pill
Free viagra
Aspirin
Best price for generic viagra
Buy Famvir
Humulin
Tylenol
Viagra discount sale
Phentermine line
Viagra interaction
Mirapex
Herbal alternative to viagra
Trimetrexate
Lescol
Acyclovir
Monopril
Lasix
Metformin
Anxiety panic disorder xanax
Xanax lethal dose
Order phentermine by cod
Trimeprazine
Ansaid
Cod delivered phentermine
Zafirlukast
Soma restaurant
Best cialis price
Buy cheap fioricet
Xanax prescriptions
Lowest phentermine
Cialis generic
Birth defects and phentermine use
Tetanus
Ambien side effects
Avapro
Methacycline
Norflex
Meclofenamate
Buy cialis uk
Adipex phentermine pill
Flexeril
Buy online viagra viagra
Nicoumalone
Loprox
Butalbital fioricet
Lozol
Mucomyst
Hydrocodone lortab
Soft tab viagra
Lowest cost phentermine
Levivia compared to viagra
Dexamethasone
Viagra prescriptions online
Advair
Is phentermine addictive
Avodart
Is tramadol a narcotic
Norflex
Civiate generic sildenafil viagra
Cialis
Hydrocodone info
Prinivil
Viagra pill splitter
Long term side effects from xanax
Lowest price viagra
Adipex between difference phentermine
Viagra faq
Dulcolax
Celiprolol
Phentermine no perscription needed
Lanoxin
Tetrabenazine
Sildenafil
Metoclopramide
Get viagra online
Chinese viagra dragon power
Maprotiline
Purchase cialis online
Tramadol sale
Viagra sex
Iodine
Cialis review
Cardizem
Viagra generic brand
Valium
Etanercept
Mobic
No overnight prescription xanax
Soma sleep
Physostigmine
Viagra advertisement
Viagra substitutes
Generic soma
Vaccine
Viagra dosage
Order viagra without prescription
Anisotropine
Viagra sample
Prescription tramadol
Demeclocycline
Viagra cialis levitra comparison dosages
Uk cheapest viagra
50 mg viagra
Nortriptyline
Arava
Cialis comparison viagra
Dilantin
Hydrocodone
Mercaptopurine
Pioglitazone
Phentermine discover card
Timolol
Xanax dosage
Viagra online sales
Cheap tramadol 180
Phentermine and fast shipping
Actonel
Adipex loss phentermine weight
Phentermine cheap no prescription
Stopping xanax
Nystatin
Danaparoid
Prevacid
Viagra cialis levivia comparison
Buy tramadol online
Piroxicam
Cialis online discount
Podophyllum
Cialis company
Losartan
Herbal phentermine side effects
Norvasc
Triazolam
Nasalcrom
Phentermine 37.5 mg
Phentermine prescribed online
Buy cheap tramadol
Lypressin
Pindolol
Kaopectate
Cyclandelate
Secobarbital
Generic viagra and generic drug
Digitoxin
Metolazone
Bob dole viagra
Cialis on line
Carbarsone
Line pharmacy phentermine
Buy cheap viagra online uk
Method of payment accepted cod phentermine
Phentermine at cost with no prescription
Atropine
Cafergot
Diet drug loss phentermine weight
Aciphex
Adapalene
Prescription soma
Epoprostenol
Tramadol hcl tab
Soma getting
Prozac drug interaction with xanax
Medrol
Cytomel
Meridia weight loss pill
Buy phentermine online prescription
Ambien overnight
Hydrocodone guaifenesin
No prescription cialis
Cheap tramadol without prescription
Aspirin
Midazolam
Buy viagra in canada
Ambien side effect
Generic purchase viagra
92 accepted cod phentermine
Allowed cialis tag viagra xhtml
Carisoprodol
Albuterol
Order phentermine cod
Flagyl
Xanax grapefruit
Prozac soma
Tramadol medicine
Tramadol hcl 50 mg
Podofilox
Valium and xanax
Levothyroxine
Effects of long term xanax use
Fluvastatin
Dangers of taking xanax and neurontin
Sophia viagra
Betaxolol
Phentermine lose weight loss diet pills
Buy buy domain link online online viagra info viag
Climara
Doctor phentermine raleigh
Protonix
Cheap overnight tramadol
Diethylpropion
Adipex
Isopropamide
Get viagra
Idoxuridine
Buy Propecia
Picture of generic xanax
Online tramadol prescriptions
Generic cialis price
Buy phentermine cod
Pfizer xanax pills
Smoking xanax
Chromium
Buy viagra internet
Viagra 50 mg
Viagra alternative
Montelukast
Methylphenidate
Online pharmacy phentermine xenical meridia
Herbal viagra for woman
Cheapest place to buy phentermine online
Ticarcillin
Methocarbamol
Carphenazine
Order phentermine overnight
Naproxen
Phentermine and urine drug screen
Cheap phentermine no prescription
Erythromycin
Phentermine capsules
Ambien medication
Generic viagra pill
Prempro
Kaopectate
Phentermine pill discount
Xanax online cheap
Herbal phentermine
Zoloft
Lipitor
Fiorinal
Genaric viagra
Sertraline
Generic online phentermine
Phentermine prices
Delivered phentermine
Canadian online pharmacy xanax
Echothiophate
Flutamide
Canada online pharmacy viagra
Viagra joke
Cogentin
Buy Ambien
Ipratropium
Leucovorin
Time released phentermine
Phentermine buy best
Meridia
Uk viagra sales
Phentermine mexican pharmacies online
Lorazepam

smpp.com - Buying a domain

January 22nd, 2007

Last week I added a new experience to my list. Our company purchased a domain (smpp.com) from buydomains.com. I must say I was a little skeptical about paying a “horrendous” amount of money, using a credit card, for a domain. However, I must say the process was very swift and completed within 36 hours. Kudos to buydomain.com for that. :)

When the purchase completed the domain can be maintained via a control panel at domaindiscovery.com. From there DNS servers could be changed and possibly a transfer to another registrar initiated. Simple enough.

So, if you find a domain that you want badly, it is for sale from buydomains.com and you can agree on a price, then I think you can safely go ahead and acquire the domain.

CentOS and JFS

December 28th, 2006

JFS (Journaled File System) is a file system from IBM. I have always really liked this file system since I first came across it, working with AIX, but I have never used it in a Linux environment until now. When you read comparisons of different file systems it seems JFS always comes out in a top position. For Linux it is sometimes beaten by XFS, but I think that is due to the fact that XFS is more widely used on Linux.

For some reason RedHat seems to have taken out support for JFS in RHES, but it is available for CentOS using the kernel in the CentosPlus repository. The process to upgrade an existing Centos installation to support JFS is simply to update the kernel with the kernel in centosplus and install jfsutils:

yum –enablerepo=centosplus install kernel-smp
yum –enablerepo=centosplus install kernel-smp-devel
yum install jfsutils

Then you probably need to change the “default” row in grub.conf and reboot to start using the new kernel with JFS support.

To create a JFS file system on a new partition use fdisk and mkfs -t jfs.

I think you need to stick to ext3 for the root and boot file systems though and there is no path (at least that I know of) for migrating an existing ext3 file system to JFS “in place”.

Upgrading Postfix on Centos (and RedHat)

November 12th, 2006

Postfix is a great e-mail server and you would usually want to keep up with new versions more aggressively than RedHat publishes RPMs for new version. However, I have never succeeded well in compiling Postfix from source with SASL support enabled. The resulting binaries (compiled towards the RedHat SASL rpms) always seem to core dump and mis-behave for reasons I have never understood.However, there is a solution… building an RPM from source and using that RPM for updating.

Read the rest of this entry »

Postfix and greylisting using postgrey

November 12th, 2006

Our mail server receives around 10.000 e-mails per day. On weeekdays around 70% is spam, during weekends more than 90% is spam. Lately our mailserver load has been very high leading to poor reponse times. As a result we decided to implement greylisting.

Read the rest of this entry »

OTP via SMS for PAM

November 7th, 2006

Now I have finished a PAM module for sending One-Time Passwords (OTPs) via SMS when using Pluggable Authentication Module (PAM) in Linux.

For more information »

HTTP sniffer on Linux - urlsnarf

October 4th, 2006

We have experienced high load on one of our web servers lately (Apache 2.0.59 on Linux). So, I started thinking about how to analyze this in a bit more detail. We are running multiple virtual hosts (around 60) so when using tcpdump it is not easy to see which URLs are requested, therefore I looked around for some HTTP-oriented sniffer. My search ended with “urlsnarf” from the “dsniff” package.

Read the rest of this entry »