TL;DR : You can run a git server a small Tomcat 7 server and you can run Rupy a Lightweight Java HTTP Async Server,
but trying to get any large webapplication running is not recommended.
awa wrote:Hello guys,
i have some questions to you. I own no Raspberry Pi but i looking forward to get one.
My use case of Raspberry Pi would be:
- Use of Tomcat to serve webapplications
- Host git repo
- Jenkins
I now this are all Java applications, where JAVA need a lot of memory. I want to know is Raspberry Pi 2 B strong enough to get this things done in a acceptable time? I mean if i server Webapplications is there a request/response Time in max 2 sec possible?
Tomcat 7
sudo apt-get install tomcat7
is bearable for small webapplication
The default "It works !" page takes 7ms to render.
the basic arithmetic page takes 1s to render "examples/jsp/jsp2/el/basic-arithmetic.jsp"
Host git repo
hosting a simple openssh + git server is fast and low on resources.
If you want a more fancy gir setup then try:
GitLab - like github on your own machine.
https://about.gitlab.com/2015/04/21/git ... erry-pi-2/
Jenkins
http://pkg.jenkins-ci.org/debian/
first time to load the jenkins page "Please wait while Jenkins is getting ready to work.." takes 17s then you have to wait long enough to get bored before it gets up and running.
awa wrote:The question is only pointing the new Raspberry, because the old one need 10 minutes to serve 1 Liferay page.
What are the times in Raspberry Pi 2 B? Can someone provide me Informations about that?
Greets
AWA
Liferay is too heavy to run on the Raspberry Pi 2
I tested to download Liferay bundled with tomcat from
https://www.liferay.com/downloads/lifer ... e-releases
memory use is at 80% of the available RAM after startup.
after configuring it takes 48s to view the first welcome where you accept the Terms of Use page
"8080/web/guest/home"
reloading the welcome page only take 2s in total.
Pressing the Terms of Use buttons takes 12 seconds.
If you want something fast then look twice at Rupy
viewtopic.php?f=81&t=42069
Rupy takes 40 seconds to compile from scratch
git clone
https://github.com/tinspin/rupy
cd rupy
ant
sh run.sh &
21ms to render the first / not found page!
http://127.0.0.1:8000/
17 seconds to compile and deploy your own rupy service that return Hello
cd ..
git clone
https://github.com/xranby/rupy-test
cd rupy-test
ant
21ms to render the Hello page!
http://127.0.0.1:8000/