[Lift] Re: Speed of Jetty start-up

2009-05-27 Thread David Pollak
On Wed, May 27, 2009 at 12:10 PM, Joe Wass  wrote:

>
> Thanks for all your replies.
>
> Frankly nothing would surprise me with VMs. I have a beige box which I
> think I'll use if I become serious and Jetty becomes unusable.
>
> I don't recall seeing JavaRebel in the installation. It looks exciting
> but I'd rather keep things simple. I'm used to typing `ant build`
> every few minutes and my aim is to work in the same way with Lift.
>
> I'd be surprised if it takes that long to open a port (!), then again
> I don't know that much about that side of things. Thankfully I've not
> had the problem since first posting. Yet...
>
> On the subject of performance / specs, am I crazy to consider
> deploying a lift app (with not too many users and not much state going
> on) on a 256MB VM?


Not a problem.  I'm running demo.liftweb.net with 32mb of heap space.  It's
got 100-200 active sessions at all time.


>
>
> Joe
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-27 Thread Joe Wass

Thanks for all your replies.

Frankly nothing would surprise me with VMs. I have a beige box which I
think I'll use if I become serious and Jetty becomes unusable.

I don't recall seeing JavaRebel in the installation. It looks exciting
but I'd rather keep things simple. I'm used to typing `ant build`
every few minutes and my aim is to work in the same way with Lift.

I'd be surprised if it takes that long to open a port (!), then again
I don't know that much about that side of things. Thankfully I've not
had the problem since first posting. Yet...

On the subject of performance / specs, am I crazy to consider
deploying a lift app (with not too many users and not much state going
on) on a 256MB VM?

Joe

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread Andrew Scherpbier

Hi Joe,
I may be out on a limb here, but could this be a DNS issue with your VM 
setup?  For me, a 120 second timeout makes me look at network trouble 
first.  I too run VirtualBox on a mac for some stuff, but have found its 
networking support just different enough from VMWare (my normal vm 
platform) to not completely trust it.

Just my $0.02

--Andrew

Joe Wass wrote:
> I've been looking at lift since yesterday morning (and scala for a
> week or so) and I'm very pleased with what I see. I'm a little
> frustrated though, Jetty appears to be breathtakingly slow to start
> and stop occasionally. Sometimes the pause before this:
>
> [INFO] Started Jetty Server
> [INFO] Starting scanner at interval of 5 seconds.
>
> is several minutes. Stopping Jetty can also be slow, with an equally
> unsatisfactory pause. Sometimes it's instantaneous with no delay.
>
> I'm running on Ubuntu Server on a virtual machine with ~700MB memory.
> I'm not doing anything more complicated than that detailed in
> tutorials.
>
> Am I doing something wrong or is Jetty really this slow? It's only
> running a few K of code...
>
> I'm aware of the continual compilation option, but I'm editing
> remotely and my editor appears to touch files more often than I save
> (i.e. I'd like to be able to control when I compile).
>
> Cheers
>
> Joe
>
> >   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread Timothy Perrett

Ok, I have no real answers, but this is just an observation i've seen
sometimes on my mac(s) when doing dev with jetty (unrelated to lift).
Sometimes, and just sometimes it appears to get itself it a total melt
down and says its exited but checking the activity monitor shows that
it really is still running (or at least the java process is) and that
its eating a shed load of memory. A hasty force quit sorts it out
tho ;-)

BTW, are you using JavaRebel? If so, how have you got this setup?

Thanks

Tim

PS: Regarding DPP's comments, its nearly impossible to get on here
before he does... swear to god he must be loitering in the browser
window refreshing every couple of mins to keep it up ;-)

On May 26, 9:06 pm, David Pollak 
wrote:
> On Tue, May 26, 2009 at 12:08 PM, Joe Wass  wrote:
>
> > FWIW, it's a Mac Mini Intel Core 2 Duo with 2GB RAM @ 2GHz on Mac OS X
> > 10.5.6 running Ubuntu Server 9.04 in Sun VirtualBox.
>
> > I'm virtualising because production will be an Ubuntu VM and I prefer
> > to work with VMs for dev. IIRC the CPU isn't working hard inside or
> > outside of the VM when it takes a long time to load.
>
> > Running mvn jetty:run often takes a few seconds but once time in ten
> > it's out for a few minutes.
>
> Sounds to me like opening port 8080 is taking a lot of time.  That's be my
> guess.
>
>
>
> > As I'm working from the standard generated project layout I imagine
> > there's nothing extra to needs that I can disable?
>
> > I'll report back when it happens next.
>
> > (it's exciting to be working with such a great framework having the
> > BDFL replying personally -- thank you!)
>
> Glad you like it and it's pretty hard to shut me up on this list, so you're
> likely to get answers from me unless one of the other fine folks on the list
> beats me to the punch. ;-)
>
>
>
>
>
>
>
> > Joe
>
> > On May 26, 7:31 pm, David Pollak 
> > wrote:
> > > Hmmm...
>
> > > This all sounds odd.  In general, mvn jetty:run (if all the Scala classes
> > > are compiled) takes about 3 or 4 seconds, even on my slow box.
>
> > > Is your CPU at 100%?
>
> > > What kind of machine is hosting your ubuntu VM?
>
> > > On Tue, May 26, 2009 at 11:18 AM, Joe Wass 
> > wrote:
>
> > > > I've been looking at lift since yesterday morning (and scala for a
> > > > week or so) and I'm very pleased with what I see. I'm a little
> > > > frustrated though, Jetty appears to be breathtakingly slow to start
> > > > and stop occasionally. Sometimes the pause before this:
>
> > > > [INFO] Started Jetty Server
> > > > [INFO] Starting scanner at interval of 5 seconds.
>
> > > > is several minutes. Stopping Jetty can also be slow, with an equally
> > > > unsatisfactory pause. Sometimes it's instantaneous with no delay.
>
> > > > I'm running on Ubuntu Server on a virtual machine with ~700MB memory.
> > > > I'm not doing anything more complicated than that detailed in
> > > > tutorials.
>
> > > > Am I doing something wrong or is Jetty really this slow? It's only
> > > > running a few K of code...
>
> > > > I'm aware of the continual compilation option, but I'm editing
> > > > remotely and my editor appears to touch files more often than I save
> > > > (i.e. I'd like to be able to control when I compile).
>
> > > > Cheers
>
> > > > Joe
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Git some:http://github.com/dpp
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread David Pollak
On Tue, May 26, 2009 at 12:08 PM, Joe Wass  wrote:

>
> FWIW, it's a Mac Mini Intel Core 2 Duo with 2GB RAM @ 2GHz on Mac OS X
> 10.5.6 running Ubuntu Server 9.04 in Sun VirtualBox.
>
> I'm virtualising because production will be an Ubuntu VM and I prefer
> to work with VMs for dev. IIRC the CPU isn't working hard inside or
> outside of the VM when it takes a long time to load.
>
> Running mvn jetty:run often takes a few seconds but once time in ten
> it's out for a few minutes.


Sounds to me like opening port 8080 is taking a lot of time.  That's be my
guess.


>
>
> As I'm working from the standard generated project layout I imagine
> there's nothing extra to needs that I can disable?
>
> I'll report back when it happens next.
>
> (it's exciting to be working with such a great framework having the
> BDFL replying personally -- thank you!)


Glad you like it and it's pretty hard to shut me up on this list, so you're
likely to get answers from me unless one of the other fine folks on the list
beats me to the punch. ;-)


>
>
> Joe
>
> On May 26, 7:31 pm, David Pollak 
> wrote:
> > Hmmm...
> >
> > This all sounds odd.  In general, mvn jetty:run (if all the Scala classes
> > are compiled) takes about 3 or 4 seconds, even on my slow box.
> >
> > Is your CPU at 100%?
> >
> > What kind of machine is hosting your ubuntu VM?
> >
> >
> >
> > On Tue, May 26, 2009 at 11:18 AM, Joe Wass 
> wrote:
> >
> > > I've been looking at lift since yesterday morning (and scala for a
> > > week or so) and I'm very pleased with what I see. I'm a little
> > > frustrated though, Jetty appears to be breathtakingly slow to start
> > > and stop occasionally. Sometimes the pause before this:
> >
> > > [INFO] Started Jetty Server
> > > [INFO] Starting scanner at interval of 5 seconds.
> >
> > > is several minutes. Stopping Jetty can also be slow, with an equally
> > > unsatisfactory pause. Sometimes it's instantaneous with no delay.
> >
> > > I'm running on Ubuntu Server on a virtual machine with ~700MB memory.
> > > I'm not doing anything more complicated than that detailed in
> > > tutorials.
> >
> > > Am I doing something wrong or is Jetty really this slow? It's only
> > > running a few K of code...
> >
> > > I'm aware of the continual compilation option, but I'm editing
> > > remotely and my editor appears to touch files more often than I save
> > > (i.e. I'd like to be able to control when I compile).
> >
> > > Cheers
> >
> > > Joe
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread Joe Wass

FWIW, it's a Mac Mini Intel Core 2 Duo with 2GB RAM @ 2GHz on Mac OS X
10.5.6 running Ubuntu Server 9.04 in Sun VirtualBox.

I'm virtualising because production will be an Ubuntu VM and I prefer
to work with VMs for dev. IIRC the CPU isn't working hard inside or
outside of the VM when it takes a long time to load.

Running mvn jetty:run often takes a few seconds but once time in ten
it's out for a few minutes.

As I'm working from the standard generated project layout I imagine
there's nothing extra to needs that I can disable?

I'll report back when it happens next.

(it's exciting to be working with such a great framework having the
BDFL replying personally -- thank you!)

Joe

On May 26, 7:31 pm, David Pollak 
wrote:
> Hmmm...
>
> This all sounds odd.  In general, mvn jetty:run (if all the Scala classes
> are compiled) takes about 3 or 4 seconds, even on my slow box.
>
> Is your CPU at 100%?
>
> What kind of machine is hosting your ubuntu VM?
>
>
>
> On Tue, May 26, 2009 at 11:18 AM, Joe Wass  wrote:
>
> > I've been looking at lift since yesterday morning (and scala for a
> > week or so) and I'm very pleased with what I see. I'm a little
> > frustrated though, Jetty appears to be breathtakingly slow to start
> > and stop occasionally. Sometimes the pause before this:
>
> > [INFO] Started Jetty Server
> > [INFO] Starting scanner at interval of 5 seconds.
>
> > is several minutes. Stopping Jetty can also be slow, with an equally
> > unsatisfactory pause. Sometimes it's instantaneous with no delay.
>
> > I'm running on Ubuntu Server on a virtual machine with ~700MB memory.
> > I'm not doing anything more complicated than that detailed in
> > tutorials.
>
> > Am I doing something wrong or is Jetty really this slow? It's only
> > running a few K of code...
>
> > I'm aware of the continual compilation option, but I'm editing
> > remotely and my editor appears to touch files more often than I save
> > (i.e. I'd like to be able to control when I compile).
>
> > Cheers
>
> > Joe
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread David Pollak
Hmmm...

This all sounds odd.  In general, mvn jetty:run (if all the Scala classes
are compiled) takes about 3 or 4 seconds, even on my slow box.

Is your CPU at 100%?

What kind of machine is hosting your ubuntu VM?

On Tue, May 26, 2009 at 11:18 AM, Joe Wass  wrote:

>
> I've been looking at lift since yesterday morning (and scala for a
> week or so) and I'm very pleased with what I see. I'm a little
> frustrated though, Jetty appears to be breathtakingly slow to start
> and stop occasionally. Sometimes the pause before this:
>
> [INFO] Started Jetty Server
> [INFO] Starting scanner at interval of 5 seconds.
>
> is several minutes. Stopping Jetty can also be slow, with an equally
> unsatisfactory pause. Sometimes it's instantaneous with no delay.
>
> I'm running on Ubuntu Server on a virtual machine with ~700MB memory.
> I'm not doing anything more complicated than that detailed in
> tutorials.
>
> Am I doing something wrong or is Jetty really this slow? It's only
> running a few K of code...
>
> I'm aware of the continual compilation option, but I'm editing
> remotely and my editor appears to touch files more often than I save
> (i.e. I'd like to be able to control when I compile).
>
> Cheers
>
> Joe
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---