OpenShift PaaS Weekly Tips and Tricks – January 26, 2013

Platform-as-a-service makes deploying applications to the cloud fast and easy. But, to get the most out of the OpenShift PaaS, it helps to stay abreast of the interesting technical issues plus their workarounds and solutions. We’ve made this easy with a weekly tips and tricks blog.

Tips on how to handle OOM errors on your Java app
Here’s a forum thread that covers tips on how to work around OOM errors. If you’re monitoring memory usage and it isn’t going past your 512MB (small gear) memory limit, it could be caused by lack of threads remaining (250 on small gears). You can configure your messaging service to use less, or check your db connections. Special thanks to @Kevin and @wdecoste+1 for troubleshooting and the tips!Platform-as-a-service makes deploying applications to the cloud fast and easy. But, to get the most out of the OpenShift PaaS, it helps to stay abreast of the interesting technical issues plus their workarounds and solutions. We’ve made this easy with a weekly tips and tricks blog.

Tips on how to handle OOM errors on your Java app
Here’s a forum thread that covers tips on how to work around OOM errors. If you’re monitoring memory usage and it isn’t going past your 512MB (small gear) memory limit, it could be caused by lack of threads remaining (250 on small gears). You can configure your messaging service to use less, or check your db connections. Special thanks to @Kevin and @wdecoste+1 for troubleshooting and the tips!

Tips on configuring custom domains on Tomcat Apps
Here’s the forum thread that contains tips on how to troubleshoot and configure/connect to custom domains on Tomcat Apps. Thanks to @kneil_20 for tips on configuring multiple hosts in server.xml!

Tips on how to workaround “ERR_TOO_MANY_REDIRECTS” on a Tomcat application
Here’s a forum thread that contains tips on how to fix “ERR_TOO_MANY_REDIRECTS” errors on your Tomcat application. Thanks @mlopez and @Thomas Wiest for the tips!

Tips on how to configure HAProxy on scalable applications
Here’s a forum thread that covers lots of great tips on how to configure HAProxy. Thanks @mitking!

Tips on running git with a specific ssh key and on the OpenShift gear
Here’s a forum thread that covers tips on how to run git with a specific ssh key (not the default lookup location ~/.ssh), and running git from the OpenShift gear. Happy cloning!

Tips on resolving port forwarding problems
Here’s a forum thread that contains tips on how to work around port forwarding issues. The client on which you run the port forwarding command could be consuming the port (mysql on 3306 for instance). You can use a different port or stop mysql on the client and try again. Thanks @Eduard!

Special thanks to all Community users who helped report these issues on IRC, Forums and the mailing list. Without you, we won’t know what we have to fix nor how we can improve. So please keep the questions coming!!

Thank you!

Nam Duong – Customer Enablement
Product Marketing Manager
OpenShift | PaaS by Red Hat

http://openshift.redhat.com
Twitter: @openshift, @NamDuong_rh

Categories
Java, News, OpenShift Online
Tags
, , , ,
Comments are closed.