Posts tagged as:

Tomcat

Daily del.icio.us for June 15th through June 17th

by Vinny Carpenter on June 17, 2008

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related posts

{ 0 comments }

Daily del.icio.us for January 19th through January 20th

by Vinny Carpenter on January 20, 2008

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related posts

Daily del.icio.us for January 3rd

by Vinny Carpenter on January 5, 2008

Daily del.icio.us for for January 3rd:

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related posts

Daily del.icio.us for Dec 26, 2007

by Vinny Carpenter on December 26, 2007

  • Advanced Topics in JPA - Parleys - Parleys.com - a Belgian Java User Group initiative - In this talk we will introduce a few of the common features and use them as a platform on which we can discuss some of the higher order JPA topics. We will show how to use multiple persistence units, define and tune identifier generators, create and invok
  • SpringSource Team Blog » Is it a Tomcat, or the Elephant in the Room? - In the era of open source, the traditional API-led sale for application servers has been replaced by a QoS sale
  • Samples Updated for AIR Beta 3 | Kevin Hoyt - What started as a couple dozen examples has also now grown to be over forty (40) AIR samples, to include a number of full applications. That being said, I?m happy to announce that the samples update for AIR Beta 3 is complete, and are available for down
  • High Performance Ajax Applications » SlideShare - High Performance Ajax Applications presentation at Yahoo by Julien Lecome. Topics include * Developing for high performance, High performance page load, High performance JavaScript, High performance DHTML, High performance layout and CSS, High perfor
  • The Google Enigma - In his new book, The Future of Management, London Business School professor Gary Hamel calls Google ?a modern management pioneer? that ?has much to teach us about how to build companies that are truly fit for the 21st century.?
Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Related posts

PHP Acceleration - Pick Your Poison

by Vinny Carpenter on February 27, 2007

As I deployed more applications and web sites on my server, I started running into resource issues. Since most of the applications I write are in Java, I run Tomcat on my Linux server. But I also run Apache as a front-end host for Tomcat as well as several PHP applications like WordPress, Vanilla and a few other PHP applications that I've written. I am not an expert PHP developer by any stretch of the imagination but I tinker with enough PHP that I decided to take a look at PHP Acceleration software.

For the uninitiated, PHP is a scripting language that is interpreted and compiled on the server side. PHP Accelerators offer caching of the PHP scripts in their compiled state along with optimization. There are several PHP optimization products out there and I decided to give eAccelerator, XCache and APC a try on my Linux machine. For the record, the box is running CentOS 4.4 which is essentially a distribution that is repackaged Red Hat Enterprise Linux 4.x.

  • eAccelerator - eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
  • XCache - XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load.
  • APC - The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was conceived of to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

I compiled and installed these PHP accelerators and found APC worked the best for me. XCache seemed to work well and actually provided a nice admin application that lets you peek inside the cache to see what's cached, the hit/miss ratio, etc. eAccelerator also seemed to work well and offered a great performance boost but caused segmentation fault and made the Apache web server unusable. It could have been bad PHP code that was causing the segmentation faults but I didn't really spend any times getting to the root cause. APC just worked, pretty much like XCache but seemed to offer a little better performance. Now I didn't really perform any empirical testing here – I simply relied on my website monitor GrabPERF as I ran each PHP extension for a few days. Your mileage may vary based on your server architecture, application, lunar phase, etc but PHP APC seemed to work the best for me.

Tags: , , , , , , , , , , ,

Related posts

BEA Workshop Studio and Ubuntu

by Vinny Carpenter on August 2, 2006

I have been following BEA's acquisition of M7 to see what happens to the NitroX product. We are a big WebLogic shop and so I was curious to see what BEA is going to bake in the new release of NitroX renamed Workshop Studio. The new Workshop Suite is based on the Callisto (Eclipse 3.2 and WTP 1.5) release and is chalk-full of goodies including EJB 3.0 (JPA), Kodo, Spring, JSF (yuck), Struts, JSTL, Hibernate support among other specs/frameworks. Another cool thing in Workshop Studio is the ORM tool that is built-in that allows developers to access databases and build an object relational entity layer to model the data using persistence engine providers that implement the EJB3, JPA, Kodo and Hibernate. Workshop also supports Tomcat, Resin, Jetty, JBoss, and WebSphere in addition to WebLogic.

I am a die-hard IntelliJ IDEA fan and IDEA is still the BEST IDE in the market. IDEA has the best refactoring, smart-type auto completion, code analyzer capabilities and it is really the best IDE for writing code. However, it is missing many of the bells-n-whistles that Eclipse and now NetBeans have. In the last few months, I found myself looking at the NetBeans 5.5 betas and Eclipse 3.2 betas and wondering why IDEA was missing a lot of that functionality. Sun has really turned around NetBeans and the latest 5.5 betas have really rocked. The combination of the Profiler with NetBeans makes it a compelling offering and the price is right.

Guess I am getting off-topic here – So I've been playing with the latest release of Workshop Studio and my first impressions are very positive. I am hoping to use it exclusively for a month and then blog about my experiences. I recently upgraded my Linux box to Ubuntu (Dapper Drake) and I've been running more than SVN, MySQL, Apache, Tomcat and WebLogic on it. I try to install all of my development tools on my XP and Linux box for consistency and so I was able to install Workshop Studio on my Ubuntu Linux box without any problems. Out of the box, Workshop Studio doesn't support Ubuntu but the installer does allow you to continue installation and use Workshop Studio. Here are the steps I used to install Workshop Studio:

I'm assuming you already have the 1.5 JDK installed on your box. If you don't, you can use apt-get to get and install the latest SDK. This article at the Javalobby has a lot more details but here's all I did for my installation:

sudo apt-get install sun-java5-jdk
sudo update-alternatives—config java
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
sudo ./WorkshopInstaller.bin

The installer clears the launcher icons in the directory of your choice and you should be all set to use Workshop Studio. On his blog, Bill Roth discusses his experiences of installing Workshop on his Ubuntu box using JRockit. In addition to being a fellow Marquette alum and an all around great guy, Bill is also the vice president of the BEA Workshop Business Unit at BEA Systems. Bill asks the question in his blog entry about BEA officially support Ubuntu in their products and I would have to say a resounding yes to that. Most enterprises use RedHat on their servers but Ubuntu is fast catching up on the desktop side and so BEA should support RedHat and Ubuntu. Cannot wait for the day when I get type in apt-get jrockit, workshop and weblogic.

Tags: , , , , , , , , , , , , , , ,

Related posts

Daily del.icio.us for Jun 06, 2006

by Vinny Carpenter on June 6, 2006

  • Do you need a highly scalable architecture? Do you need to be able to handle hundreds of transactions a second? What works in small web apps doesn't necessarily hold together in big apps under heavy loads. Binildas C. A. has this introduction to coding an
  • Discover three Ajax data transport mechanisms (XMLHttp, script tags, and frames or iframes) and their relative strengths and weaknesses. This tutorial provides code for both the server side and the client side and explains it in detail to provide the tech
Tags: , , , ,

Related posts

WebLogic Console for Tomcat vs. Tomcat Probe

by Vinny Carpenter on March 31, 2006

At last year's BEA World, the conference formally known as eWorld, BEA announced the WebLogic Console for Tomcat. This add-in for the WebLogic console is finally here and I can't wait to try it out. While I love WebLogic and use it for everything production, I do use Tomcat for some simple development tasks or quick POC applications that don't require transactions or all of the bells-n-whistles of WebLogic.

The administration tools that ships with Tomcat leave a lot to be desired and so this will be a welcome invitation for anyone using Tomcat. The one sticking point is that it will require WebLogic and so this may only be a value-add for people using WebLogic. Since WebLogic developers licenses are free, anyone can download and use WebLogic but I'm not sure a lot of people will rush and download WebLogic, just to use the Tomcat admin console.

Most people that use Tomcat probably use or should really take a serious look at Tomcat Probe. Tomcat Probe is a web application, which is designed to dig into Tomcat internal objects to display invaluable runtime information about deployed applications and Tomcat instance in general. The list of features include:

  • Display of deployed applications, their status, session count, session object count, context object count, datasource usage etc.
  • Start, stop, restart, deploy and updeploy of applications
  • Ability to view deployed JSP files
  • Ability to compile all or selected JSP files at any time.
  • Ability to pre-compile JSP files on application deployment.
  • Display of list of sessions for a particular application
  • Display of session attributes and their values for a particular application. Ability to remove session attributes.
  • Ability to expire selected sessions
  • Graphical display of datasource details including maximum number of connections, number of busy connections and configuration details
  • Ability to reset data sources in case of applications leaking connection
  • Display of system information including System.properties, memory usage bar and OS details
  • Display of JK connector status including the list of requests pending execution
  • Real-time connector usage charts and statistics.
  • Ability to show information about log files and download selected files
  • New! Ability to interrupt execution of "hang" requests without server restart

I understand (and applaud) BEA's strategy of adoption of open-source tools, products and their commitment to open source software. In addition to supporting open-source initiatives, BEA has also contributed a lot of source-code and intellectual property to the open-source community as well. I know the strategy behind the WebLogic console for Tomcat is to up-convert people from Tomcat to WebLogic and make the migration process easier but the audience for this tool will be a very small and niche group. I guess I count myself in that small group and will install the Tomcat add-in for the WebLogic console - Can't wait to see how it stacks up against Tomcat Probe.

BEA, WebLogic, Tomcat, weblogic+console, foss, open-source, tomcat+probe

Tags: , , , , , ,

Related posts

Daily Del.icio.us for Feb 19, 2006

by Vinny Carpenter on February 19, 2006

Tags: , , , ,

Related posts

Looking for a reliable host with Tomcat/Jetty and MySQL

by Vinny Carpenter on December 23, 2005

I have use pair.com for all of my hosting need for the last 10+ years and have rarely had any problems. But one of the bad things about Pair is the lack of Java support on the shared hosted side. They offer Tomcat, Jetty, JBoss, etc on a dedicated server but that's usually overkill (and overpriced) for some simple applications.

I have a little project that needs Tomcat or Jetty and MySQL and so am I looking for any help you can provide in finding a reliable host that has decent bandwidth, great uptime and Java/JSP support in a shared/virtual environment. Any suggestions? Please leave a comment or send me an email using the link on the right.

Tags: , , , , , , , ,

Related posts