--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
http://github.com/dpp/lift_sbt_prototype
There must be some sort of template for Google's AppEngine. Now I'm
reading through StartingWithLift.pdf.
You know how it is when learning something new. Just gotta connect a
lot of dots. Unfortunately, the dots are versioned and I'm probably
gonna get burned mixing and matching Scala 2.8/Lift 2.0 and Scala
2.7/Lift 1.0.
-Mike
By running Lift on GAE you loose nearly all the awesome USPs that lift provides. If you just want a framework to do templating and some other stuff, then sure, lift on GAE will be fine... if you want to use actors or anything that using any kind of threading your going to be a little screwed with GAE.
Thats not to say you cant make cool apps with Lift on GAE, its just likely you are going to have to jump through a lot of hoops to make it happen.
Cheers, Tim
http://jpkutner.blogspot.com/2009/08/scala-and-lift-on-google-app-engine.html
Do I simply replace the pom.xml in my project directory with yours?
Maven does all the right magic, right up until ...? :-)
-Mike
The yet another Java framework state of Java is a bit annoying and a
hard sell on group projects. I was hoping Scala/Lift would snowball,
and end the pain.
-Mike
Yeah, GAE was decided first, and work has already started.
I heard
you on FLOSS Weekly (http://twit.tv/floss125) and realized Scala 2.8
is here so it's probably a great time to toe-dip into Scala/Lift with
some sort of project.
The yet another Java framework state of Java is a bit annoying and a
hard sell on group projects. I was hoping Scala/Lift would snowball,
and end the pain.
-Mike
On Sun, Jun 27, 2010 at 9:19 PM, David Pollak
<feeder.of...@gmail.com> wrote:
> FWIW, I think you're going to be very disappointed with the Lift/GAE
> combination. Because GAE doesn't support all of the JVM's features and
> applies random constraints (e.g, requests for a given session may be served
> by different JVMs without any notice to the running application), you'll
> probably find that your Lift apps misbehave in random ways. If you've
> already settled of GAE, then I'd recommend another web framework such as
> Wicket or Play.
>
> On Sun, Jun 27, 2010 at 1:37 PM, Michael Mellinger <mmelli...@gmail.com>
> wrote:
>>
>> We already use GAE and I don't think we can change at this point, but
>> we'll consider it at a later stage. I found this and got my
>> HelloWorld Lift program running under Jetty.
>>
>> http://github.com/dpp/lift_sbt_prototype
>>
>> There must be some sort of template for Google's AppEngine. Now I'm
>> reading through StartingWithLift.pdf.
>>
>> You know how it is when learning something new. Just gotta connect a
>> lot of dots. Unfortunately, the dots are versioned and I'm probably
>> gonna get burned mixing and matching Scala 2.8/Lift 2.0 and Scala
>> 2.7/Lift 1.0.
>>
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
I remember a long while back that there was talk of implementing
actors on GAE by using a CRON job and by running them in the thread
that sent the message to the actor. Was this deemed impossible or bad
or was it just not done because of the small target audience and the
difficulty of implementation?
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
That makes a lot of sense. I was just curious.
What recommendations would people have for minimum RAM size for hosting lift in a VPS. I experimented at one point and found that it seemed to require quite a bit. But I may not have been doing it write. Are there any guides online for how to setup and optimize a VPS for lift? (or other servlets I guess they are probably the same)
-Arthur (sent from phone)
On Jun 30, 2010 10:52 PM, "David Pollak" <feeder.of...@gmail.com> wrote:
On Wed, Jun 30, 2010 at 7:07 PM, Arthur <arthur...@gmail.com> wrote:
>
> I remember a long while...
Doing any work for GAE is a waste of time. Why?
GAE is slow and non-scalable, despite Google's claims (everyone I've spoken with that have tried to scale GAE apps have failed and gone elsewhere).
GAE locks you into a tremendously suboptimal storage mechanism.
GAE is free, but so is Stax and there are many inexpensive options including SliceHost. Next up, you've got Amazon EC2 and RackSpace.
So, I haven't found a good reason for anyone to use GAE. And if there's no good reason to use GAE, devoting a pile of resources to code around the GAE JVM incompatibilities (e.g., no new threads) seems like a waste.
>
>
> -Arthur
>
> On Jun 27, 11:41 pm, David Pollak <feeder.of.the.be...@gmail.com>
> wrote:
> > On...
--Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics
--
You received th...
That makes a lot of sense. I was just curious.
What recommendations would people have for minimum RAM size for hosting lift in a VPS.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Our site seemed to need 768MB to run Ubuntu 9.10 Server with
PostgreSQL 8.4 and Jetty with a small Lift app on. (swap is not
allowed on the VPS host).
Could we do a better setup?
-Fredrik
On Fri, Jul 2, 2010 at 3:32 PM, David Pollak
-Arthur
Mem: 1048576k total, 663416k used, 385160k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28112 jetty 18 0 545m 136m 6100 S 0.0 13.4 3:06.41 jsvc
5570 postgres 15 0 107m 14m 5168 S 0.0 1.5 0:04.64 postgres
3178 postgres 18 0 107m 9.8m 4 S 0.0 1.0 0:03.59 postgres
5868 postgres 18 0 107m 9.8m 4 S 0.0 1.0 0:04.84 postgres
I'm not sure how these things works but the sum of the processes
virtual memory seems to be close to the total memory used.
Suggestions anyone?
Thanks!
-Fredrik
Virt is what the kernel allows that process to use, but Res is the actual amount of RAM used. The total seems too high though, but I suspect that may be because you dont have any swap defined. Are you able to at least setup a swap file if you cant use an actual partition?
Also, what jvm options are you using? If you are using defaults, they scale with the total mem I believe.
I think thats all correct, but writing this from my phone so unable to doublecheck.
On 2010-07-02 5:07 PM, "Fredrik Jonsson" <fredri...@gmail.com> wrote:
These are the top stats from our VPS:
Mem: 1048576k total, 663416k used, 385160k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28112 jetty 18 0 545m 136m 6100 S 0.0 13.4 3:06.41 jsvc
5570 postgres 15 0 107m 14m 5168 S 0.0 1.5 0:04.64 postgres
3178 postgres 18 0 107m 9.8m 4 S 0.0 1.0 0:03.59 postgres
5868 postgres 18 0 107m 9.8m 4 S 0.0 1.0 0:04.84 postgres
I'm not sure how these things works but the sum of the processes
virtual memory seems to be close to the total memory used.
Suggestions anyone?
Thanks!
-Fredrik
On Fri, Jul 2, 2010 at 11:02 PM, Arthur Peters <a...@singingwizard.org> wrote:
> I would also love t...
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to t...
To clarify, total should be Res, Buffers, and Cache. The total might be using Virt instead of Res due to the kernel not having swap to fall back on.
On 2010-07-02 6:29 PM, "Derek Williams" <de...@nebvin.ca> wrote:
Virt is what the kernel allows that process to use, but Res is the actual amount of RAM used. The total seems too high though, but I suspect that may be because you dont have any swap defined. Are you able to at least setup a swap file if you cant use an actual partition?
Also, what jvm options are you using? If you are using defaults, they scale with the total mem I believe.
I think thats all correct, but writing this from my phone so unable to doublecheck.
>
> On 2010-07-02 5:07 PM, "Fredrik Jonsson" <fredri...@gmail.com> wrote:
>
> These are the top...
To clarify, total should be Res, Buffers, and Cache. The total might be using Virt instead of Res due to the kernel not having swap to fall back on.
On 2010-07-02 6:29 PM, "Derek Williams" <de...@nebvin.ca> wrote:Virt is what the kernel allows that process to use, but Res is the actual amount of RAM used. The total seems too high though, but I suspect that may be because you dont have any swap defined. Are you able to at least setup a swap file if you cant use an actual partition?
Also, what jvm options are you using? If you are using defaults, they scale with the total mem I believe.
I think thats all correct, but writing this from my phone so unable to doublecheck.
> These are the top...>
> I would also love t... --
>
> On Fri, Jul 2, 2010 at 11:02 PM, Arthur Peters <a...@singingwizard.org> wrote:
>
To post to t...
> You received this message because you are subscribed to the Google Groups "Lift" group.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
-Fredrik
With 64mb heap jetty reports 119mb RES, postgres about 35mb RES and
rest of OS 10-20mb RES. I conclude that 128mb with some tweaking or on
the safe side 256 mb would be sufficient.
However since our VPS host (they use OpenVZ) doesn't allow swap top
reports 450mb total memory usage which forces us to buy 512 or even
768 mb to be on the safe side.
BR
-Fredrik
PS. switched to nginx asweel, thank you for pointing me to it.
Thanks for posting your results. Its quite illuminating (though it does leave me wondering why you would need swap or lots of extra RAM. What is soaking up the extra? I wonder.)
Just in case and one else had this confusion about the free service on Stax: free hosted apps hybernate after 24 hours HOWEVER this does not mean that an admin needs to poke it or anything. Any HTTP request to the app will wake it up. It just means that the first request after 24 hrs of non-use will take an extra few seconds while the VPS resumes from hibernation.
-Arthur (sent from phone)
On Jul 7, 2010 5:44 PM, "Fredrik Jonsson" <fredri...@gmail.com> wrote:
A final memory report if anyone is interested.
With 64mb heap jetty reports 119mb RES, postgres about 35mb RES and
rest of OS 10-20mb RES. I conclude that 128mb with some tweaking or on
the safe side 256 mb would be sufficient.
However since our VPS host (they use OpenVZ) doesn't allow swap top
reports 450mb total memory usage which forces us to buy 512 or even
768 mb to be on the safe side.
BR
-Fredrik
PS. switched to nginx asweel, thank you for pointing me to it.
On Sun, Jul 4, 2010 at 1:13 PM, Fredrik Jonsson <fredri...@gmail.com> wrote:
> Thank you! I'll ...
--
They claim like 5 I think, but a quick test with the "basic eclipse app" (the one in the maven achetype) was more like 20 or maybe even 30. But that only happens the your app gets 0 hits in 24 hours I think.
-Arthur (sent from phone)
On Jul 7, 2010 11:05 PM, "Naftoli Gugenheim" <nafto...@gmail.com> wrote:
Interesting. What kind of "few seconds"? Like 3? Or 20?
On Wed, Jul 7, 2010 at 6:51 PM, Arthur Peters <a...@singingwizard.org> wrote:
>
--
> Thanks for posting your results. Its quite illuminating (though it does leave me wondering why y...
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post ...
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post ...
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Do you all work for Stax?.... :)
Ok.. I agree, Stax seems to give a nice entry level to EC2. In the
case that a MySql database is going to be too small, then I could move
to a SimpleDB for some table which is large if my application did ever
get so large.
- Chris
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
Well, its interesting, Google App Engine folk keep saying the same
type of thing, don't hold state in the server between requests.
However, you lift people seem to like state. Also seam framework likes
state, encourages seam conversation scope.
It seems both state or no state can scale.