Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
More
Next Blog
Create Blog
Sign In
23 June 2012
Posts Comments
JEE != Heavy!
There has been a lot of debate about JEE application servers being "heavy-weight" . However I've always been of the opinion that JEE app servers may have been a little fat in the "noughties" but with the new breed of application servers combined with JEE6 that is no longer true. So I recently received my Raspberry PI, a cheap ($25) Linux compatible ARM bare board which runs Debian. The PI comes with 256Mb RAM on board and an ARM1176JZFS and supports Java so it should be about as lightweight as you can get as a server platform. Also JBoss EAP 6 was released this week with claims that it is a lightweight JEE6 compliant application server so I decided to test how lightweight it is by getting it to run on the PI.
java
(31)
jboss
(22)
middleware (20) JEE (19) oracle (17) data grids (16) glassfish (16) weblogic (14) Infinispan (9) Apache
(8) JBoss EAP 6 (8) coherence (8) big data (6) Application server (5) Tomcat (5) HornetQ (4) Active MQ (3) Camel (3)
WildFly (3) Drools (2) EAP 6 (2)
Install Java
First things first. I decided to use Oracle's embedded Java as it supports Armv6 chips. The exact version used was ejre-7u4-fcs-b20linux-arm-vfp-client_headless-12_apr_2012. pi@raspberrypi:~$ gunzip ejre-7u4-fcs-b20-linux-arm-vfp-client_headless12_apr_2012.tar.gz pi@raspberrypi:~$ tar xvf ejre-7u4-fcs-b20-linux-arm-vfp-client_headless-12_apr_2012.tar pi@raspberrypi:~$ cd ejre1.7.0_04/bin pi@raspberrypi:~/ejre1.7.0_04/bin$ ./java -version java version "1.7.0_04-ea" Java(TM) SE Runtime Environment for Embedded (build 1.7.0_04ea-b20, headless) Java HotSpot(TM) Embedded Client VM (build 23.0-b21, mixed mode) That's it for installing Java.
Popular Posts
JBoss EAP 6 as light as Raspberry PI? JBoss EAP 6 JEE != Heavy! There has been a lot of debate about JEE application servers being "heavy-weight" . However I&#... Configuring and Testing a WebLogic Cluster Configuring and Testing a WebLogic Cluster: This article describes how to configure and test a cluster of servers using WebLogic 10.3 and A... The Differences Between JBoss EAP 5 and EAP 6
pdfcrowd.com
pi@raspberrypi:~/jboss-eap-6.0/bin$ export JAVA_OPTS="-Xmx125M -XX:MaxPermSize=50M Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true Djboss.server.default.config=standalone.xml" pi@raspberrypi:~/jboss-eap-6.0/bin$ export JAVA_HOME=/home/pi/ejre1.7.0_04/ pi@raspberrypi:~/jboss-eap-6.0/bin$ ./add-user.sh What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): Enter the details of the new user to add. Realm (ManagementRealm) : Username : admin Password : Re-enter Password : The username 'admin' is easy to guess Are you sure you want to add user 'admin' yes/no? yes About to add user 'admin' for realm 'ManagementRealm' Is this correct yes/no? yes Added user 'admin' to file '/home/pi/jboss-eap-6.0/standalone/configuration/mgmt-users.properties' Added user 'admin' to file '/home/pi/jboss-eap-6.0/domain/configuration/mgmt-users.properties' Is this new user going to be used for one AS process to connect to another AS process e.g. slave domain controller? yes/no? no pi@raspberrypi:~/jboss-eap-6.0/bin$ ./standalone.sh -b 192.168.0.81 -bmanagement=192.168.0.81 With these settings JBoss starts up in about 60 seconds and listens on 192.168.0.81 (the IP address of the PI on the network). Browsing to the home page http://192.168.0.81:8080 we see that JBoss is ALIVE on the PI.
and EAP 6 Introduction This is part four in a series of blogs looking at JBoss EAP 5 and 6. In Part One of this series on JBoss (available here : h... A Smartphone as a JEE Server: Glassfish 4 on Ubuntu Touch Last year, following the release of the much anticipated Raspberry Pi, Steve couldnt resist getting JBoss EAP 6 to run on it, which he mana... Basic clustering with Weblogic 12c and Apache Web Server The aim of this post is to demonstrate Weblogics clustering capabilities and to use the Weblogic Apache plugin to use the Apache Web Server...
C2B2 Tw itter
Tweets by @c2b2consulting
Blog Archive
2013 ( 36 ) 2012 ( 58 ) December ( 3 ) November ( 7 ) October ( 13 ) September ( 3 ) August ( 3 ) July ( 8 ) June ( 11 ) RBS IT Failure - A Familiar Tale? JBossWorld Boston 2012 Wednesday Infinispan Event push over Tomcat Websocket via Ho... JUDCon Boston 2012 Day Two Infinispan Event push over Tomcat
Browsing through the Admin Console we can see that we have JBoss running with memory to spare!
pdfcrowd.com
Websocket via Ho... Infinispan from POC to Production - Video and Slid... JUDCon Boston 2012 Day One JBoss EAP 6 as light as Raspberry PI? JBoss EAP 6 - First Light Elastic SOA in the Cloud - C2B2 is speaking at SOA... Data Grids and Web Sockets: Delivering Real Time P... May ( 6 ) April ( 1 ) March ( 1 ) February ( 1 )
pdfcrowd.com
Steve Millidge
4 comments :
Anonymous 10 October 2012 03:37 I tried something similar but it did not work, what I want to do is run jboss 5.1 under the rapsberry pi, but I get this message: Error occurred during initialization of VM Server VM is only supported on ARMv7+ VFP Any clue? Bets regards. Reply Replies C2B2 10 October 2012 22:13
Without checking you may have -server specified in your JVM args in the run.sh or run.conf for JBoss if so try switching to client. JBoss 5.1 is a little heavier out of the box than EAP 6 so you might also have to knock down the -Xmx and hope! Reply
ninjafox 23 October 2012 20:30 Hi, can't get the file from redhat, seems like they removed it? So I got the 6.0.0 Final vom jboss.org there is no add-user.sh shell script in the bin folder... BR Reply Replies
VISIT OUR WEBSITE Get your ow n Widget
C2B2 Hi,
www.c2b2.co.uk Disclaimer
pdfcrowd.com
Confusingly JBoss 6 from JBoss.org is not the same as JBoss EAP 6. JBoss EAP 6 is based on JBoss 7 from JBoss.org! Try http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip Thanks Steve Reply
The views and opinions expressed on this b log are those of the authors and do not necessarily represent the views and opinions of C2B2 Consulting Ltd.
Home
Older Post
C2B2 on LinkedIn
pdfcrowd.com
See how your LinkedIn network connects you to C2B2 Consulting Limited.
In Your Network
powered by
pdfcrowd.com