[Lift] Re: lift_successRegisterGC()
Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. We're not using Comet or Lift generated form elements. We are using a jQuery plugin to do autocomplete which uses ajax. Can you tell me a bit more about GC, is it a jQuery thing? I've turned off auto ajax also: // For now, disable all Lift ajax stuff LiftRules.autoIncludeAjax = session = false So, I get this error on every page: Error: lift_successRegisterGC is not defined and this error on pages that don't use jQuery: Error: jQuery is not defined Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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: lift_successRegisterGC()
Hi David, is there a way to turn off the output of this javascript code? On Dec 16, 8:51 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:47 AM, Alex Black a...@alexblack.ca wrote: I see the following javascript on each of my pages in my site: // ![CDATA[ jQuery(document).ready(function() {lift_successRegisterGC();}); var lift_page = 'F1212351415633FZT'; // ]] I don't think its necessary for what I'm doing, is there a way to turn off this feature? Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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: lift_successRegisterGC()
I found this in another thread: LiftRules.enableLiftGC = false On Dec 16, 12:55 pm, Alex Black a...@alexblack.ca wrote: Hi David, is there a way to turn off the output of this javascript code? On Dec 16, 8:51 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:47 AM, Alex Black a...@alexblack.ca wrote: I see the following javascript on each of my pages in my site: // ![CDATA[ jQuery(document).ready(function() {lift_successRegisterGC();}); var lift_page = 'F1212351415633FZT'; // ]] I don't think its necessary for what I'm doing, is there a way to turn off this feature? Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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.
Re: [Lift] Re: lift_successRegisterGC()
On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. To disable Garbage Collection: LiftRules.enableLiftGC = false Each GUID that's shipped to the client for form callbacks, Comet callbacks, Ajax callbacks, JSON callbacks, etc. is associated with a function. That function is stored in a session-specific table that maps from GUIDs to functions. Without garbage collection, the functions associated with the GUIDs build up for the duration of a given session. The can be memory intensive. So, we've implemented a mechanism where every 75 seconds (a tunable parameter), the browser does an Ajax call to the server saying page is still live. All GUIDs associated with that page are kept around. If a GUID hasn't been seen on a page in 10 minutes and is not associated with a Comet component that's still live, then the function is removed from the GUID mapping table and will ultimately be removed from memory by the JVM garbage collector. We're not using Comet or Lift generated form elements. We are using a jQuery plugin to do autocomplete which uses ajax. Can you tell me a bit more about GC, is it a jQuery thing? I've turned off auto ajax also: // For now, disable all Lift ajax stuff LiftRules.autoIncludeAjax = session = false So, I get this error on every page: Error: lift_successRegisterGC is not defined and this error on pages that don't use jQuery: Error: jQuery is not defined Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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: lift_successRegisterGC()
cool, thanks for the info. We're not using those features yet, so we'll leave this off for now. On Dec 16, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. To disable Garbage Collection: LiftRules.enableLiftGC = false Each GUID that's shipped to the client for form callbacks, Comet callbacks, Ajax callbacks, JSON callbacks, etc. is associated with a function. That function is stored in a session-specific table that maps from GUIDs to functions. Without garbage collection, the functions associated with the GUIDs build up for the duration of a given session. The can be memory intensive. So, we've implemented a mechanism where every 75 seconds (a tunable parameter), the browser does an Ajax call to the server saying page is still live. All GUIDs associated with that page are kept around. If a GUID hasn't been seen on a page in 10 minutes and is not associated with a Comet component that's still live, then the function is removed from the GUID mapping table and will ultimately be removed from memory by the JVM garbage collector. We're not using Comet or Lift generated form elements. We are using a jQuery plugin to do autocomplete which uses ajax. Can you tell me a bit more about GC, is it a jQuery thing? I've turned off auto ajax also: // For now, disable all Lift ajax stuff LiftRules.autoIncludeAjax = session = false So, I get this error on every page: Error: lift_successRegisterGC is not defined and this error on pages that don't use jQuery: Error: jQuery is not defined Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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.
Re: [Lift] Re: lift_successRegisterGC()
On Wed, Dec 16, 2009 at 1:30 PM, Alex Black a...@alexblack.ca wrote: cool, thanks for the info. We're not using those features yet, so we'll leave this off for now. If you're not using those features what part of Lift are you using? Can you send the raw HTML (via view source in your browser) of a page? I'm betting that you're using some GUID - function stuff... it's pretty hard not to in Lift. On Dec 16, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. To disable Garbage Collection: LiftRules.enableLiftGC = false Each GUID that's shipped to the client for form callbacks, Comet callbacks, Ajax callbacks, JSON callbacks, etc. is associated with a function. That function is stored in a session-specific table that maps from GUIDs to functions. Without garbage collection, the functions associated with the GUIDs build up for the duration of a given session. The can be memory intensive. So, we've implemented a mechanism where every 75 seconds (a tunable parameter), the browser does an Ajax call to the server saying page is still live. All GUIDs associated with that page are kept around. If a GUID hasn't been seen on a page in 10 minutes and is not associated with a Comet component that's still live, then the function is removed from the GUID mapping table and will ultimately be removed from memory by the JVM garbage collector. We're not using Comet or Lift generated form elements. We are using a jQuery plugin to do autocomplete which uses ajax. Can you tell me a bit more about GC, is it a jQuery thing? I've turned off auto ajax also: // For now, disable all Lift ajax stuff LiftRules.autoIncludeAjax = session = false So, I get this error on every page: Error: lift_successRegisterGC is not defined and this error on pages that don't use jQuery: Error: jQuery is not defined Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com liftweb%252bunsubscr...@googlegroups.comliftweb%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@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: lift_successRegisterGC()
Heh. We're only using basic templates/snippets, and url rewriting/ dispatching. We're not using lift forms, ajax, comet, mapper etc. We just wanted a templating engine that worked well with Scala, and Lift seems to do that pretty nicely I'm stubborn - I'm holding to my views that web servers should be as stateless as possible - using state for callbacks doesn't sit well with me, yet. - Alex On Dec 16, 4:35 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 1:30 PM, Alex Black a...@alexblack.ca wrote: cool, thanks for the info. We're not using those features yet, so we'll leave this off for now. If you're not using those features what part of Lift are you using? Can you send the raw HTML (via view source in your browser) of a page? I'm betting that you're using some GUID - function stuff... it's pretty hard not to in Lift. On Dec 16, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side), then it is strongly advised that you enable GC. To disable Garbage Collection: LiftRules.enableLiftGC = false Each GUID that's shipped to the client for form callbacks, Comet callbacks, Ajax callbacks, JSON callbacks, etc. is associated with a function. That function is stored in a session-specific table that maps from GUIDs to functions. Without garbage collection, the functions associated with the GUIDs build up for the duration of a given session. The can be memory intensive. So, we've implemented a mechanism where every 75 seconds (a tunable parameter), the browser does an Ajax call to the server saying page is still live. All GUIDs associated with that page are kept around. If a GUID hasn't been seen on a page in 10 minutes and is not associated with a Comet component that's still live, then the function is removed from the GUID mapping table and will ultimately be removed from memory by the JVM garbage collector. We're not using Comet or Lift generated form elements. We are using a jQuery plugin to do autocomplete which uses ajax. Can you tell me a bit more about GC, is it a jQuery thing? I've turned off auto ajax also: // For now, disable all Lift ajax stuff LiftRules.autoIncludeAjax = session = false So, I get this error on every page: Error: lift_successRegisterGC is not defined and this error on pages that don't use jQuery: Error: jQuery is not defined Thanks! - Alex -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com liftweb%252bunsubscr...@googlegroups.comliftweb%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com liftweb%2bunsubscr...@googlegroups.comliftweb%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group.