com.google.apphosting.api.ApiProxy$OverQuotaException: The API call remote_socket.SetSocketOptions() required more quota than is available.`
This is adversely affecting the user experience of my app. So please help me fix asap.App Id - saseatavailabilitycom.google.apphosting.api.ApiProxy$OverQuotaException: The API call remote_socket.SetSocketOptions() required more quota than is available.
I found a thread with a similar issue in this group. Wonder if its a related problem?


Hoping for an early resolution.
Regards,Sagar--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/22cj_U1in5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f2ae390c-0224-45de-8bdd-b1d4c032dda6%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
@Path("/")public class SparkResource implements Serializable { /** * */ private static final long serialVersionUID = -5278229852877855876L; private final CloseableHttpClient httpClient = HttpClients.createDefault(); private final Logger log = Logger.getLogger(RailwayResource.class.getName()); @GET @Path("spark") @Produces({MediaType.APPLICATION_JSON}) public String readSparkStatus(@QueryParam("param1") String param1 throws Exception { List <NameValuePair> nvps = new ArrayList <NameValuePair>(); nvps.add(new BasicNameValuePair("param1", param1)); httpPost.setEntity(new UrlEncodedFormEntity(nvps)); Document doc = null; CloseableHttpResponse response = null; try { response = httpclient.execute(httpPost); HttpEntity entity = response.getEntity(); doc = Jsoup.parse(entity.getContent(), "UTF-8", ""); EntityUtils.consume(entity); } catch(Exception ex) { log.log(Level.SEVERE, ex.getMessage(), ex); } finally { if(response != null) { response.close(); } if(httpClient != null) { httpClient.close(); } } ... }}
Cheers!
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f2ae390c-0224-45de-8bdd-b1d4c032dda6%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/22cj_U1in5w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/20ca7144-e2ae-4595-bed9-2d80881b4e53%40googlegroups.com.
Hello Patrice,Thank you for your response! I am using the Apache library which does the setting of socket options I think. Here is what my code looks like.@Path("/")publicclassSparkResourceimplementsSerializable {/****/privatestaticfinallongserialVersionUID = -5278229852877855876L;privatefinalCloseableHttpClient httpClient = HttpClients.createDefault();privatefinalLogger log = Logger.getLogger(RailwayResource.class.getName());@GET@Path("spark")@Produces({MediaType.APPLICATION_JSON})publicString readSparkStatus(@QueryParam("param1") String param1throwsException {
...
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>saseatavailability</application>
<version>1</version>
<!--
Allows App Engine to send multiple requests to one instance in parallel:
-->
<threadsafe>true</threadsafe>
<appengine.api.urlfetch.defaultDeadline>10.0</appengine.api.urlfetch.defaultDeadline>
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
<!--
HTTP Sessions are disabled by default. To enable HTTP sessions specify:
<sessions-enabled>true</sessions-enabled>
It's possible to reduce request latency by configuring your application to
asynchronously write HTTP session data to the datastore:
<async-session-persistence enabled="true" />
With this feature enabled, there is a very small chance your app will see
stale session data. For details, see
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
-->
</appengine-web-app>
Thanks,
Sagar