glassfish_at_javadesktop.org wrote:
> Thank you for reply, it is clear and impressive.
>
> In order to make the problem clear. I did the following test:
> 1. develop a simple RoR web app by Scaffold command in Netbean 6.8
> 2. deploy and run the app through builtin-Jruby1.4+WEBrick, when I input a URL in firefox to access the deployed website, the response time is quick, about 0.5 seconds.
> 3. however, when deploy and run the same app on builtin-Jruby1.4+glassfish v3, the response time of the same url is about 3 seconds, which seems too long to browse a website.
>
> Compared with WEBrick, the response time in glassfish v3 is much longer, what is the reason?
There is one difference as how JRuby runtime is started. When you deploy
on WEBRick, basically JRuby starts the JVM and starts WEBRick. In case
of glassfish v3 based deployment, JRuby runtime is started form inside
the JVM and the rails app is loaded. It is basically how JRuby boots
itself. There might be minor time difference but not what you are
reporting. There is definitely something going on.
Right test would be to use CLI and measure the time. I just tried it on
my laptop and see the running 'jruby script/server' for depott app is
taking around 11-13 sec and its the same time it takes on glassfish v3
as well. I am not sure whats going on in NB.
> Do you have any suggestion to improve the response time?
>
You can also try glassfish gem which like WEBRick is a Ruby gem and
builts on top of glassfish v3 kernel. You can install glassfish gem
using NB.
-vivek.
> kevin
> [Message sent by forum member 'hitwzh' (hitwzh_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=378981
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>