cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Karlsen <davidkarl...@gmail.com>
Subject Cannot get cachedoutputstream to work properly for JAX-RS client
Date Fri, 26 Aug 2016 09:11:18 GMT
I have the following class:
https://gist.github.com/davidkarlsen/f669b1398a732c8c406e8d5faab2ab3f

Where I set the following props:
setCachedOutputStreamBusProperty( bus, "Threshold", Integer.toString(
1024*2014) ) ;
setCachedOutputStreamBusProperty( bus, "MaxSize", Integer.toString(
1024*1024 ) );
setCachedOutputStreamBusProperty( bus, "OutputDirectory",
SystemUtils.getJavaIoTmpDir().getAbsolutePath() );
HTTPConduit httpConduit = (HTTPConduit) clientConfiguration.getConduit();
httpConduit.getClient().setAllowChunking( false );
httpConduit.getClient().setChunkingThreshold( Integer.MAX_VALUE );
return fsDepot;
}
private void setCachedOutputStreamBusProperty( Bus bus, String property,
String value ) { bus.setProperty( "bus.io.CachedOutputStream." + property,
value ); }


But I still end in a out-of-heap situation.

Is it because I've effectively disabled chunking (the remote party
malfunctions and does not accept the request while using chunking).

-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message