Todays' Ad

Strange ColdFusion issue, JRUN eating up to 50% of CPU.

ColdFusion 3 Comments »

 

For one of our project we recently move to Amazon EC2 to make system easily scalable. This is kind of seasonal website which has high traffic during September and October and rest of the year traffic reduced to 70% with compare to October month. I think Amazon's usage based model is perfect for this client as he doesn't need to pay much on his off season also we can easily scale and add new instances during peak season and cover cost that we saved during off season.

Finally we happily moved everything on cloud EC2 and working fine. Suddenly after 1 hour of so CPU usage increased to 50% and remain constance 50% for hour or so. While looking into Task manager we realize that JRUN is eating up that CPU but there wan't much traffic at that time (average 1 user/sec) and system was happily handling this much traffic in our dedicated server. Tried to install Fusion Reactor to see realtime users and other stats but it seem that even Fusion Reactor can not figure out who is eating up CPU. For a day we keep running server as our all sites working correctly and wasn't making much performance issue.

On next day get CPU utilization graph provided by EC2 and found strange output. It seems that CPU usage remain 50% or UP for around 2 hours or so then came back to normal and again after 1 hour to went high to 50%, and repeating same schedule for whole day. 

 

Read more...

Configure ColdFusion with VisualVM

ColdFusion No Comments »

For one of our project we are facing jrun high usage issue. When looking into task manager (Window 2008) I found jRun continously eating up 50% CPU usage even though there is no traffic (or may be 2 to 3 users) only on site. Initially I tried to install FusionReactor to get all kind of detail regarding ColdFusion. Started with trial version and thought if useful then get full version but it seems that giving me all application ColdFusion application related information but can't find anything why JRun eating 50% of CPU usage. After bit googing I found VISUALVM and JConsole for monitoring and troubleshooting java application. I like VisualVm due to it's nice GUI and also I can integrate JConsole as plugin to it. It win - win kind of situation. 

I am not going to much detail about VisualVm and JConsole as they already have good documentation on their wetsite. All here I am going to explain is how to install VisualVm to work with ColdFusion for window OS.

Read more...

Complex password strength checking through regular expression

ColdFusion , Regular Expression No Comments »

Currently working on project for well non credit card company where they have online registration form. They really want user enter enter strong password for their account and criteria for password listed below..

  1. Password must length between 8 to 18.
  2. Password must contain atleast one alpha and on numeric.
  3. Password must have one special characters from @,#,$.
  4. Password can not have repeative alpha and numeric.

Read more...

Making Paypal standard checkbout more user friendly

Paypal No Comments »

Recently working with paypal standard checkout and it so easy to integrate with any application as it will redirect to paypal site and customer login and make all kind of payment stuff at paypal site only. But this task make really tuff for new customer who has limited knowledge of intenernet/paypal.

How this works? Well, paypal has very good documentation here. Basic flow is.

  1. Customer click on "Paypal" button which redirect to paypal site.
  2. Customer need to login or enter credit card information.
  3. Paypal ask for confirmation of payment.
  4. Thanks page for placing order with link to return original site.

On standard checkout user leave my site so I don't have any way to know has he finish payment or not and my order staus will be unpaid (or anything what you have code for). I am able to update order status only if customer click on return link that I have provided at the time of generating paypal button but in most of the case customers don't return to my site as they see "Thanks" message from paypal and close browser.

Later, I realize that paypal has an option to auto return (My Account OverView >> My Business Setup >> Customize my buyer's experience >> Auto Return) just enable it and provide auto return URL (Yes, you can override it at transaction level), simultanously enable "Payment Data Transfer" option as well so you will receive all your data back on return URL and perform necessary action on particular order. This option really help me lot as customer doesn't need to manually click on return URL instead paypal will redirect automatically after 10 seconds. Wait, 10 seconds.... Customer can close browser in between and again my order payment is not confirmed.

Well, this can be avoided by Instance Payment Notification (IPN). IPN will send notification all payment related transcation from your account to your specified server URL. I am not going to discuss it in detail about IPN here as it is very well documented here.

 

CF Builder Error: "Unhandled event loop execution" when trying install new software

CFBuilder 1 Comment »

Got new project and started working this, going through documentation provided by client and where he mention code repository will be Git. Well, we use SVN for code version but never used Git, I do have idea about GIT and account in Github site but never get chance to look into it. As ususal to start with GIT first of all I look for eclipse plugin for this and found one at http://eclipse.org/egit/. Thoguht to give try and click menu "Help >> Install New Software..." and get alert need to start builder with administrator. I guess this is because CFBuilder installed on program files folder which usually require administrative access to add/remove files in it. So restarted cfbuilder with administrative access and again click on same menu but this time nothing happen, tried twice, thrice but nothing happen.

Read more...

Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds