At present I do not have a short and running example code for this. Also, the received request object is not getting larges (it is never more than 250KB). I did some memory profiling, but did not find any irregularities over there.
I am using JDK 6. On Friday, January 11, 2013 1:15:56 PM UTC+5:30, Feng Xiao wrote: > > > > On Friday, January 11, 2013 3:30:26 PM UTC+8, [email protected] wrote: >> >> Because, to process the request object (in #7), the methods which are >> present in the google protobuf generated file are called. The protobuf >> request object contains multiple requests, and the time taken to extract >> these (requests) is gradually increasing with time. > > Do you have a running code example to prove this? Have you checked that if > the received object is getting larger and lager? Or maybe your program is > consuming more and more memory as it's running? > > >> >> I think this is protobuf problem because these classes where generated by >> the protobuf compiler (from the .proto file). >> >> >> On Friday, January 11, 2013 12:41:35 PM UTC+5:30, Feng Xiao wrote: >>> >>> What makes you think it's protobuf's problem? >>> >>> On Friday, January 11, 2013 2:50:54 PM UTC+8, [email protected] wrote: >>>> >>>> My application uses Google Protocol Buffer with Apache MINA. There are >>>> clients who connect to the MINA Connector, send request to the server and >>>> then wait for the response from the server. The flow of control is as >>>> follows: >>>> 1. Client sends request >>>> 2. Request received at MINA filter (<Class> >>>> extends CumulativeProtocolDecoder) >>>> 3. doDecode() method is called >>>> 4. A request object (generated from *.proto file) is >>>> created using the <RequestObject>.parseFrom(bytes) >>>> 5. The request is passed on to the IOHandler (<Class> >>>> extends IoHandlerAdapter) >>>> 6. messageReceived() method is called >>>> 7. In this method, the request object (from #6) >>>> is processed to create the list of requests which has been sent by the >>>> client. >>>> * 8. At this point, we have noticed that the >>>> time taken to process the request object (#7) is gradually degrading with >>>> time. From a initial period of around 2 ms, the time period is going up to >>>> 200 ms in just 8 days of continuous usage. And this value gradually >>>> increases with time.* >>>> 9. The request list is processed in the >>>> application >>>> 10. The response object is created >>>> 11. The response is sent to the client. >>>> >>>> Any suggestion would be highly appreciated. >>>> >>> -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/_3DwAMuCrJ8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
