[appengine-java] delete log and entities

2010-01-30 Thread Andrés Cerezo
Hello!! Ho can I delete the logs and the entities of my project in app engine?
I need it to initializate all the system.
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] java.security.AccessControlException: access denied java.net.NetPermission specifyStreamHandler

2010-01-30 Thread Andreas Blomqvist
Hi all

I get this error:

*java.security.AccessControlException: access denied java.net.NetPermission
specifyStreamHandler*

 when trying to connect to my GAE server. Anyone know how to grant
permissions in GAE?

thanks

/x

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] AppCfg error

2010-01-30 Thread Andreas Blomqvist
Hi

I get this error when I try and deply to GAE.

usage: dirname path
Exception in thread main java.lang.NoClassDefFoundError:
com/google/appengine/tools/admin/AppCfg
Caused by: java.lang.ClassNotFoundException:
com.google.appengine.tools.admin.AppCfg
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)

Just installed the 1.3 SDK, and then this error began. Any thoughts?

/x

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] java.security.AccessControlException: access denied java.net.NetPermission specifyStreamHandler

2010-01-30 Thread 杨浩
It's not enough information!
Show the full stack trace,please!

2010/1/30 Andreas Blomqvist blomqvist.andr...@gmail.com

 Hi all

 I get this error:

 *java.security.AccessControlException: access denied
 java.net.NetPermission specifyStreamHandler*

  when trying to connect to my GAE server. Anyone know how to grant
 permissions in GAE?

 thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How can I install my GAE application into other user accounts?

2010-01-30 Thread Jorge
Hi Mike,

You may want to see the Selling App Engine Apps thread in the Google
App Engine group.  The 3rd post, by Brian Flood, explain his approach
to your question and it is pretty cleaver.

http://groups.google.com/group/google-appengine/browse_thread/thread/4ce497229c8ff0aa?hl=en#

Jorge Gonzalez

On Jan 29, 12:25 pm, mjustin michael.jus...@gmx.net wrote:
 Hello Ikai,

 Yes, I understand that I need to change the ID because the recipient
 can not use the same name for the copy. But I need access to the other
 users account, so I think he/she has to grant me access on his App
 Engine account (by inviting me). SO I do not need to have user email
 and password for the the recipient account. I just can not test it
 myself as I have only one Google account :)

 Regards,
 Michael
 On 28 Jan., 20:14, Ikai L (Google) ika...@google.com wrote:

  You should just be able to change the application ID in application-web.xml
  and push it.

  On Thu, Jan 28, 2010 at 8:23 AM, mjustin michael.jus...@gmx.net wrote:
   Hello,

   is there a way to copy my GAE application into somebody elses account?

   I would like to make it as easy as possible for the recipient, so he/
   she should not need the GAE SDK installed.

   I have seen that there is a way to invite a Developer to Collaborate
   on an Application.

   So my idea is

   * the recipient creates a new application and then invites me as a
   developer
   * I can upload the app to his/her account

   Is this possible?

   Many thanks in advance,

   Michael

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

  --
  Ikai Lan
  Developer Programs Engineer, Google App 
  Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] AppCfg error

2010-01-30 Thread 杨浩
check your gae settings in the ant build file!
Good luck!
This is my gae set:

#GAE setting
gae.sdk.dir=/prog/eclipse/gae/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120/appengine-java-sdk-1.3.0

import file=${gae.sdk.dir}/config/user/ant-macros.xml /
path id=gae.project.classpath
pathelement path=war/WEB-INF/classes /
fileset dir=war/WEB-INF/lib
include name=**/*.jar /
/fileset
fileset dir=${gae.sdk.dir}/lib
include name=shared/**/*.jar /
/fileset
/path

2010/1/30 Andreas Blomqvist blomqvist.andr...@gmail.com

 Hi

 I get this error when I try and deply to GAE.

 usage: dirname path
 Exception in thread main java.lang.NoClassDefFoundError:
 com/google/appengine/tools/admin/AppCfg
 Caused by: java.lang.ClassNotFoundException:
 com.google.appengine.tools.admin.AppCfg
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)

 Just installed the 1.3 SDK, and then this error began. Any thoughts?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] AppCfg error

2010-01-30 Thread 杨浩
after gae set,this is a e.x:

target name=GAE update description=Uploads the application to App
Engine.
echo开始更新GAE.../echo
appcfg action=update war=war/
/target

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] java.security.AccessControlException: access denied java.net.NetPermission specifyStreamHandler

2010-01-30 Thread 杨浩
In the htmlunit it's use java.net.URL,so you must check the port of the
request url!
It's a little limit in the GAE:

The URL must use the standard ports for HTTP (80) and HTTPS (443). The port
is implied by the scheme, but may also be mentioned in the URL as long as
the port is standard for the scheme (https://...:443/). An app cannot
connect to an arbitrary port of a remote host, nor can it use a non-standard
port for a scheme.
detail see:http://code.google.com/appengine/docs/java/urlfetch/overview.html

2010/1/30 Andreas Blomqvist blomqvist.andr...@gmail.com

 Ok!

 its a htmlunit package that gets the error

[java] Jan 30, 2010 11:38:45 AM
 com.google.apphosting.utils.jetty.JettyLogger warn
  [java] WARNING: Error for /myservlet
  [java] java.lang.ExceptionInInitializerError
  [java] at
 com.xxx.fs.FSServlet.processRequest(FSServlet.java:93)
  [java] at com.xxx.fs.FSServlet.doGet(FSServlet.java:257)
  [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
  [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
  [java] at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  [java] at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  [java] at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
  [java] at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  [java] at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  [java] at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  [java] at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
  [java] at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  [java] at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  [java] at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  [java] at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  [java] at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  [java] at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  [java] at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
  [java] at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  [java] at
 com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
  [java] at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  [java] at org.mortbay.jetty.Server.handle(Server.java:313)
  [java] at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  [java] at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  [java] at
 org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  [java] at
 org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  [java] at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  [java] at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  [java] at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
  [java] Caused by: java.security.AccessControlException: access denied
 (java.net.NetPermission specifyStreamHandler)
  [java] at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
  [java] at
 java.security.AccessController.checkPermission(AccessController.java:546)
  [java] at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  [java] at
 com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
  [java] at java.net.URL.checkSpecifyHandler(URL.java:629)
  [java] at java.net.URL.init(URL.java:501)
  [java] at
 com.gargoylesoftware.htmlunit.util.UrlUtils.toUrlUnsafe(UrlUtils.java:91)
  [java] at
 com.gargoylesoftware.htmlunit.util.UrlUtils.toUrlSafe(UrlUtils.java:62)
  [java] at
 com.gargoylesoftware.htmlunit.WebClient.clinit(WebClient.java:161)
  [java] ... 29 more
  [java] Jan 30, 2010 11:38:45 AM
 com.google.apphosting.utils.jetty.JettyLogger warn
  [java] WARNING: Nested in java.lang.ExceptionInInitializerError:
  [java] java.security.AccessControlException: access denied
 

[appengine-java] Re: One-to-many querying for a child instance

2010-01-30 Thread Sydney
The thread 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/2acea43161d8ac5/96c77de6c686526d?lnk=gst
is dealing with the same kind of problem. Basically it's not possible
to filter on the name property. So I guess I have two ways of doing
it.

1/ Creating the key by hand bu I have to know the parent key.

Key key = new KeyFactory.Builder(A, A).addChild(B,
B).getKey();
B bp = pm.getObjectById(B.class, key);

2/ Using an extent and filter the name property if I don't know the
parent key

B bp = null;
ExtentB e = pm.getExtent(B.class);
IteratorB it = e.iterator();
while (it.hasNext()) {
B rsb = it.next();
if (B.equals(rsb.getName())) {
bp = rsb;
break;
}
}
e.closeAll();


On Jan 27, 11:47 pm, Rusty Wright rwright.li...@gmail.com wrote:
 Yes, as you can surmise, I'm guessing.

 What's this annotation on the name property for?

 @Extension(vendorName=datanucleus, key=gae.pk-name, value=true)





 Sydneywrote:
  Since I declared the parameter with query.declareParameters(String
  nameParam);, the colon is not valid. As expected I got an exception
  org.datanucleus.store.query.QueryCompilerSyntaxException: Explicit
  parameters defined for query, yet implicit parameter syntax
  (:nameParam) found

  On Jan 27, 4:39 pm, Rusty Wright rwright.li...@gmail.com wrote:
  Do you need a colon in front of nameParam?

              query.setFilter(name == :nameParam);

  Sydneywrote:
  The query returns no result.
              ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment
  ());
              ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.))
  {
              });
              A a = new A(A);
              B b = new B(B);
              a.getBs().add(b);
              PersistenceManagerFactory pmf =
  JDOHelper.getPersistenceManagerFactory(transactions-optional);
              PersistenceManager pm = pmf.getPersistenceManager();
              Transaction tx = pm.currentTransaction();
              try {
                  tx.begin();
                  pm.makePersistent(a);
                  tx.commit();
              } finally {
                  if (tx.isActive()) {
                      tx.rollback();
                  }
              }
              System.out.println(a.getKey());
              A ap = pm.getObjectById(A.class, A);
              System.out.println(ap.getKey());
              Query query = pm.newQuery(B.class);
              query.setFilter(name == nameParam);
              query.declareParameters(String nameParam);
              ListB rs = (ListB) query.execute(B);
              System.out.println(rs.size());
  On Jan 23, 12:20 am, John Patterson jdpatter...@gmail.com wrote:
  Execute a query on the name property of B rather than loading it by  
  key.  If the name is unique the result should only contain one B.
  On 23 Jan 2010, at 11:41,Sydneywrote:
  I have a one to many relationship. There is a problem in the way I
  query for a B object. I was wondering what is the best way (most
  efficient) to do that.
  A a = new A(A);
  B b = new B(B);
  a.getBs().add(b);
  pm.makePersistent(a); // it's done inside a transaction
  A ap = pm.getObjectById(A.class, A); // FINE
  B bp = pm.getObjectById(B.class, B); // NOT FOUND Exception
  I guess B is not found because the real key is not B but B + A key.
  How do you get the B object when you don't know nothing about A?
  public class A {
    �...@primarykey
    �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    �...@extension(vendorName = datanucleus, key = gae.encoded-pk,
  value = true)
     private String key;
    �...@persistent
    �...@extension(vendorName = datanucleus, key = gae.pk-name, value
  = true)
     private String name;
    �...@persistent(mappedBy = a)
     private ListB bs;
     public A(String name) {
         this.name = name;
         bs = new ArrayListB();
     }
  ... Getter/Setter
  }
  @PersistenceCapable(identityType =
  javax.jdo.annotations.IdentityType.APPLICATION)
  public class B {
    �...@primarykey
    �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    �...@extension(vendorName = datanucleus, key = gae.encoded-pk,
  value = true)
     private String key;
    �...@persistent
    �...@extension(vendorName = datanucleus, key = gae.pk-name, value
  = true)
     private String name;
    �...@persistent
     private A a;
     public B(String name) {
         this.name = name;
     }
  ... Getter/Setter
  }
  --
  You received this message because you are subscribed to the Google  
  Groups Google App Engine for Java group.
  To post to this group, send email to 
  google-appengine-java@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  

[appengine-java] Does precompilation work ?

2010-01-30 Thread tomekc
Hi All,

does precompilation work for you ?
I'm trying a few times deploy with precompilation but still get an
exception:

java.io.IOException: Precompilation failed.  Consider adding
precompilation-enabledfalse/precompilation-enabled to your
appengine-web.xml and trying again.
Unable to update app: Precompilation failed.  Consider adding
precompilation-enabledfalse/precompilation-enabled to your
appengine-web.xml and trying again.
Please see the logs [/var/folders/XC/XCZRRBVPHbSTigao7dR+ek+++TI/-Tmp-/
appcfg8627681542400368916.log] for further information.

in that log I have:

Unable to update:
java.io.IOException: Precompilation failed.  Consider adding
precompilation-enabledfalse/precompilation-enabled to your
appengine-web.xml and trying again.
...cut...
Caused by: java.io.IOException: Error posting to URL:
http://appengine.google.com/api/appversion/precompile?app_id=Xversion=1;
503 Service Unavailable

Try Again (503)
An unexpected failure has occurred. Please try again.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:143)
...cut...
503 Service Unavailable

Try Again (503)
...cut

I ask because maybe it is temporary problem ?

 Regards, tomek.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] memcache question

2010-01-30 Thread Andrei
I have one entry in memcache around 300Kb
I serve it over request which come about one in every 1 to 5 mins
About in half cases it takes about 4 seconds to get entry from cache,
in other cases 50m ms
I was expecting all cases to be 50 ms
Any ideas?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: memcache question

2010-01-30 Thread Cristian Nicanor Babula
Could you please post the server-side code that reads the entity from 
memcache?


On 01/30/2010 09:47 PM, Andrei wrote:

i log where the value comes from
for all cases where it takes 4 seconds the entity is already in cache

On Jan 30, 3:41 pm, Cristian Nicanor Babulanicanor.bab...@gmail.com
wrote:
   

Try setting a further expiration 
date.http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

On 1/30/2010 9:28 PM, Andrei wrote:

 

I have one entry in memcache around 300Kb
I serve it over request which come about one in every 1 to 5 mins
About in half cases it takes about 4 seconds to get entry from cache,
in other cases 50m ms
I was expecting all cases to be 50 ms
Any ideas?
Thanks
   
   


--
You received this message because you are subscribed to the Google Groups Google 
App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: memcache question

2010-01-30 Thread Andrei
   byte data[] = null;

if( cache!=null ){
  data = (byte[])cache.get( data );
  if( data!=null )
log.info( coming from cache );
}

if( data==null ){
  data = get_data( getServletContext() );
  cache.put( data, data );
  log.info( coming from file );
}


On Jan 30, 4:01 pm, Cristian Nicanor Babula nicanor.bab...@gmail.com
wrote:
 Could you please post the server-side code that reads the entity from
 memcache?

 On 01/30/2010 09:47 PM, Andrei wrote:

  i log where the value comes from
  for all cases where it takes 4 seconds the entity is already in cache

  On Jan 30, 3:41 pm, Cristian Nicanor Babulanicanor.bab...@gmail.com
  wrote:

  Try setting a further expiration 
  date.http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

  On 1/30/2010 9:28 PM, Andrei wrote:

  I have one entry in memcache around 300Kb
  I serve it over request which come about one in every 1 to 5 mins
  About in half cases it takes about 4 seconds to get entry from cache,
  in other cases 50m ms
  I was expecting all cases to be 50 ms
  Any ideas?
  Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Periodically download backup of datastore?

2010-01-30 Thread Dominik Steiner

That would be by far the easiest solution +1 from me here too

are there any other solutions around here in the mean time?

Thanks

Dominik

--
You received this message because you are subscribed to the Google Groups Google 
App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: memcache question

2010-01-30 Thread Andrei
it is related to new Servlet startup

On Jan 30, 4:01 pm, Cristian Nicanor Babula nicanor.bab...@gmail.com
wrote:
 Could you please post the server-side code that reads the entity from
 memcache?

 On 01/30/2010 09:47 PM, Andrei wrote:

  i log where the value comes from
  for all cases where it takes 4 seconds the entity is already in cache

  On Jan 30, 3:41 pm, Cristian Nicanor Babulanicanor.bab...@gmail.com
  wrote:

  Try setting a further expiration 
  date.http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

  On 1/30/2010 9:28 PM, Andrei wrote:

  I have one entry in memcache around 300Kb
  I serve it over request which come about one in every 1 to 5 mins
  About in half cases it takes about 4 seconds to get entry from cache,
  in other cases 50m ms
  I was expecting all cases to be 50 ms
  Any ideas?
  Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: App instance recycling and response times - is there solution?

2010-01-30 Thread Alyxandor
If you are experiencing failed requests on your long-running /
requests, consider performing some kind of pre-warming procedure of
your own...  If you are getting timeout errors, Ping a do-nothing url,
and wait for it to return before running the big job.  If it's a big
job, users should expect to wait anyway {and you should tell them they
are waiting!}, so the ping ensures {almost} that a warm JVM is running
in the server nearest said users, and then the big /request can
{usually} avoid getting killed with extra spin up time.  Very unlucky
users would get a /ping on an old JVM, and /request a new one, but...
Technology isn't perfect...  YET!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.