RE: Wicket and memory, caching

2014-03-10 Thread Brown, Berlin [PRI-1PP]



Berlin Brown – Software Developer Primerica Online
Primerica_Online_-_Java_Development
770-564-6374

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Monday, March 10, 2014 4:03 AM
To: users@wicket.apache.org
Subject: Re: Wicket and memory, caching

Hi,


On Sat, Mar 8, 2014 at 9:24 PM, Brown, Berlin [PRI-1PP]  
berlin.br...@primerica.com wrote:

 We are running into memory issues and it looks like wicket stores a 
 lot of data in heap memory but also a lot of data is stored in session.


Some numbers that prove your words would really help here!

Percenage wise, the numbers are pretty high.  Out of a 1.5 gig heap, we see the 
WicketApplication eating up  1% of the heap.


 We aren't that concerned with page versioning or caching approaches.  E.g.
 we can just turn all of that off.  We thought about using 
 setVersioning to false for all components.  Also use the 
 leastevictionstrategy and not use the secondlevelsessionstore.


What is leastevictionstrategy ?!

Sorry:
package org.apache.wicket.session.pagemap;  
LeastRecentlyAccessedEvictionStrategy

secondlevelsessionstore is DefaultPageStore that by default holds up to
40 pages. Let's say an average size of a page is 500Kb (and this is a really 
big/complex page!) then this cache adds 20Mb in total. Not sure about Wicket 
1.4.x but in 1.5+ you can disable it by setting its size to any non-positive 
number (see IStoreSettings)



 In addition to that, we see one object that seems to eat up a lot of heap:

 WicketApplication - Settings - 
 MarkupCache$DefaultCacheImplementation

 For this object MarkupCache, if we change the caching strategies, will 
 the MarkupCache not fill up so much?  Is there any setting that 
 controls the MarkupCache?


MarkupCache holds the contents of the markup files (the .html templates).
This helps to avoid re-loading the content from the file system again and again.
How much memory it uses ?

The MarkupCache is stored in the Settings object and eventually the 
WicketApplication.  Usually about 1% of a 1.5 gig heap.  Higher than objects.  
Especially since there is only one wicket application.

Is there  way to control the MarkupCache?  Or is that part of the page store 
settings?


 Note: still using an old release 1.4.x (latest)

 
 Berlin Brown



Wicket and memory, caching

2014-03-08 Thread Brown, Berlin [PRI-1PP]
We are running into memory issues and it looks like wicket stores a lot of data 
in heap memory but also a lot of data is stored in session.

We aren't that concerned with page versioning or caching approaches.  E.g. we 
can just turn all of that off.  We thought about using setVersioning to false 
for all components.  Also use the leastevictionstrategy and not use the 
secondlevelsessionstore.

In addition to that, we see one object that seems to eat up a lot of heap:

WicketApplication - Settings - MarkupCache$DefaultCacheImplementation

For this object MarkupCache, if we change the caching strategies, will the 
MarkupCache not fill up so much?  Is there any setting that controls the 
MarkupCache?

Note: still using an old release 1.4.x (latest)


Berlin Brown


Web app vulnerability protection in wicket (csrf)

2014-02-08 Thread Brown, Berlin [PRI-1PP]
Does wicket have support for top vulnerabilities?  Mainly I am trying to 
protect against cross site scripting and cross site request forgery attacks.

I haven't found anything yet  explicitly for those attacks but for CSRF, I was 
going to try to use the encrypted URL strategy.  (And I am assuming the default 
URL versioning strategy or the random parameter on the url is not a full 
protection against those attacks?).

Also, for csrf, is there an easy way to inject tokens for each request, if 
those tokens are valid, then we could generate an error.

Note: I am assuming an ancient version of wicket.1.4.x(1.4.15).





RE: OT: good java hosting

2014-01-16 Thread Brown, Berlin [PRI-1PP]
It is a little pricey.  But I prefer linode for virtual hosting.  And they have 
good docs on tomcat configuration

-Original Message-
From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Sent: Thursday, January 16, 2014 9:55 AM
To: users@wicket.apache.org
Subject: Re: OT: good java hosting

Dank je wel!


On Thu, Jan 16, 2014 at 3:52 PM, Thomas Matthijs li...@selckin.be wrote:

 hetzner.de


 On Thu, Jan 16, 2014 at 3:50 PM, Ernesto Reinaldo Barreiro  
 reier...@gmail.com wrote:

  Danje wel,
 
  Bijvoorbeeld?
 
  Thanks!
 
 
  On Thu, Jan 16, 2014 at 3:43 PM, Thomas Matthijs li...@selckin.be
 wrote:
 
   On Thu, Jan 16, 2014 at 2:54 PM, Ernesto Reinaldo Barreiro  
   reier...@gmail.com wrote:
  
Apologies for the OT message... but I value the opinion of 
people in
  this
list.
   
Can you suggest a good place to host Wicket applications? I'm
 hosting a
couple of them somewhere I'm NOT very satisfied with service
 provided.
   
I started to compare offers myself... but a bit of help on that
  direction
will be appreciated.
   
1- Applications are not very resource/traffic intensive.
   
2- Quality of support/up time should be good.
  
3- Just need any relational database.
   
  
   A cheapish dedicated server might be ideal for this, (and way 
   cheaper
  then
   anything that even hits at cloud)
   For 50eur/month you can have 32gb ram quad core i7s
  
   mvg,
  
 
 
 
  --
  Regards - Ernesto Reinaldo Barreiro
 




--
Regards - Ernesto Reinaldo Barreiro


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket and HTML5/jQuery or Dojo

2013-12-13 Thread Brown, Berlin [PRI-1PP]
Will Wicket support most of the HTML5 tags?  Canvas?  footer header etc?  
Can wicket support plug and play javascript frameworks.

I asked this on reddit:

http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serverside_response_to_html5_and/


RE: Wicket and HTML5/jQuery or Dojo

2013-12-13 Thread Brown, Berlin [PRI-1PP]
Would wicket make it easier to use those tags.

Could I just throw in a Footer object or Meter object into my code (from the 
core library).  Yes, I guess I could create custom components for it.  But is 
there a strategy to respond to those components or not mention them at all?

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, December 13, 2013 10:21 AM
To: users@wicket.apache.org
Subject: Re: Wicket and HTML5/jQuery or Dojo

Hi,

You are a long time Wicket user so I hope you have a good answer for:

How Wicket stands on your way to use canvas, header, footer or any JavaScript 
library ?

Does Wicket throw exceptions when it sees header ? No.
Just use whatever does the job the best way for you.



Martin Grigorov
Wicket Training  Consulting


On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP]  
berlin.br...@primerica.com wrote:

 Will Wicket support most of the HTML5 tags?  Canvas?  footer 
 header etc?  Can wicket support plug and play javascript frameworks.

 I asked this on reddit:


 http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_serversi
 de_response_to_html5_and/



RE: Wicket and HTML5/jQuery or Dojo

2013-12-13 Thread Brown, Berlin [PRI-1PP]
OK, just making sure.
And footer is a bad example, but like I see in that code, there might special 
scenarios for using Geolocation tags or canvas tags.  Shrug.


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, December 13, 2013 10:44 AM
To: users@wicket.apache.org
Subject: Re: Wicket and HTML5/jQuery or Dojo

How footer is different than div ?
You can associate it with WebMarkupContainer, or with Panel. It depends what 
you want to do with it.

https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent
provides
components for some HTML5 elements.
Anyone is welcome to add more if (s)he thinks they will be useful

Martin Grigorov
Wicket Training  Consulting


On Fri, Dec 13, 2013 at 5:33 PM, Brown, Berlin [PRI-1PP]  
berlin.br...@primerica.com wrote:

 Would wicket make it easier to use those tags.

 Could I just throw in a Footer object or Meter object into my code 
 (from the core library).  Yes, I guess I could create custom components for 
 it.
  But is there a strategy to respond to those components or not mention 
 them at all?

 -Original Message-
 From: Martin Grigorov [mailto:mgrigo...@apache.org]
 Sent: Friday, December 13, 2013 10:21 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket and HTML5/jQuery or Dojo

 Hi,

 You are a long time Wicket user so I hope you have a good answer for:

 How Wicket stands on your way to use canvas, header, footer or any 
 JavaScript library ?

 Does Wicket throw exceptions when it sees header ? No.
 Just use whatever does the job the best way for you.



 Martin Grigorov
 Wicket Training  Consulting


 On Fri, Dec 13, 2013 at 5:12 PM, Brown, Berlin [PRI-1PP]  
 berlin.br...@primerica.com wrote:

  Will Wicket support most of the HTML5 tags?  Canvas?  footer 
  header etc?  Can wicket support plug and play javascript frameworks.
 
  I asked this on reddit:
 
 
  http://www.reddit.com/r/java/comments/1s5tq6/what_is_the_java_server
  si
  de_response_to_html5_and/
 



Modern javascript/html code generation, is Wicket the only one?

2013-12-03 Thread Brown, Berlin [PRI-1PP]
This is more a general question.  Is wicket pretty much the only mainstream 
java framework that generates javascript calls from Java code.  E.g. Wicket 
generates ajax code for those particular widgets.

With the web moving to javascript heavy frameworks, does struts/spring mvc 
really stand up if they just generating pure HTML.

Also for wicket, is there  a move to use more jquery or some other javascript 
framework, more javascript?


RE: Possible asynchronous ajax operations with form ajaxsubmitlink

2013-09-13 Thread Brown, Berlin [PRI-1PP]
I don't know how the page serialization matters.  But I just did a  test
case and a user can submit ajax requests to wicket asynchronously but
the requests are processed as part of a queue and the processing is
synchronous.

Is that mechanism handled in Java side/server side?  What classes?

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Thursday, September 12, 2013 9:29 AM
To: users@wicket.apache.org
Subject: Re: Possible asynchronous ajax operations with form
ajaxsubmitlink

No, because all access to Wicket pages is serialized (on the server).

Sven

On 09/12/2013 03:20 PM, Brown, Berlin [PRI-1PP] wrote:
 Is it possible for wicket to execute operations asynchronously in 
 terms of handling ajax calls.

   

 For example, if I have an ajax submit link.

   

 AjaxSubmitLink1 {

 OnSubmit() {

  runLongRunningOperation();

 // Imagine this operation runs 10 seconds

}

 }

 AjaxSubmitLink2 {

 OnSubmit() {

  runLongRunningOperation();

 // Imagine this operation runs 2 seconds

}

 }

   

 Let's say a user clicks on ajaxsubmitlink1 and then ajaxsubmitlink2.

 (1)Runs in 10 seconds.

 (2)Runs in 5 seconds.

   

 Is it possible that ajax submit link2 will complete before
 ajaxsubmitlink1 even though the user click on 1 first?

   




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Possible asynchronous ajax operations with form ajaxsubmitlink

2013-09-12 Thread Brown, Berlin [PRI-1PP]
Is it possible for wicket to execute operations asynchronously in terms
of handling ajax calls.

 

For example, if I have an ajax submit link.

 

AjaxSubmitLink1 {

   OnSubmit() {

runLongRunningOperation();

   // Imagine this operation runs 10 seconds

  }

}

AjaxSubmitLink2 {

   OnSubmit() {

runLongRunningOperation();

   // Imagine this operation runs 2 seconds

  }

}

 

Let's say a user clicks on ajaxsubmitlink1 and then ajaxsubmitlink2.

(1)Runs in 10 seconds.

(2)Runs in 5 seconds.

 

Is it possible that ajax submit link2 will complete before
ajaxsubmitlink1 even though the user click on 1 first?