I am trying to start backend service using push task queue. Here's my
backend configuration

<?xml version="1.0" encoding="UTF-8"?>
<backends>
        <backend name="zipcodebuilder">
                <class>B1</class>
                <options>
                        <dynamic>true</dynamic>
                </options>
        </backend>
</backends>

and here's my code for adding task queue.

                try{
                    Queue queue = QueueFactory.getDefaultQueue();
                    TaskOptions options = TaskOptions.Builder
                                .withUrl("/zipcodebuilder")
                                .method(TaskOptions.Method.POST)
                                .param("buildAll", buildAll.toString())
                                .param("buildDatastore", 
buildDatastore.toString())
                                .param("size", String.valueOf(size));

                    options = options.header("Host",
        
BackendServiceFactory.getBackendService().getBackendAddress("zipcodebuilder"));

                    queue.add(options);  // <- Here PermGen space runs out
                }
                catch (Exception e) {
                        logger.severe("Failed to add zipcodebuilder task into 
task queue: "
+ e);
                }


java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at
com.google.appengine.tools.development.DevAppServerClassLoader.loadClass(DevAppServerClassLoader.java:
87)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.privateGetPublicMethods(Class.java:2547)
        at java.lang.Class.getMethods(Class.java:1410)
        at com.zeroturnaround.javarebel.pM.makeClassPublicMethodCache(JRebel:
420)
        at com.zeroturnaround.javarebel.pM.getClassPublicMethodCache(JRebel:
177)
        at com.zeroturnaround.javarebel.pM.getMethods(JRebel:570)
        at java.lang.Class.getMethods(Class.java)
        at
com.google.appengine.tools.development.ApiProxyLocalImpl.getDispatchMethod(ApiProxyLocalImpl.java:
411)
        at com.google.appengine.tools.development.ApiProxyLocalImpl.access
$400(ApiProxyLocalImpl.java:46)
        at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:490)
        at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:452)
        at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:430)
        at java.util.concurrent.Executors$PrivilegedCallable
$1.run(Executors.java:463)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.concurrent.Executors
$PrivilegedCallable.call(Executors.java:460)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)

Has anybody encounter this problem?

-- 
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 at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to