Yonik,
I pulled SimplePostTool apart, pulled out the main() and the postFiles() and
just use it directly in Java via postFile() -> postData().  It seems to work
OK. Maybe I should upgrade to v1.3 and try doing things directly through
Solrj.  Is 1.3 stable yet?  Might that be a better plan altogether?

Dave

On 1/16/08, Yonik Seeley <[EMAIL PROTECTED]> wrote:
>
> From your stack trace, it looks like it's your client running out of
> memory, right?
>
> SimplePostTool was meant as a command-line replacement to curl to
> remove that dependency, not as a recommended way to talk to Solr.
>
> -Yonik
>
> On Jan 16, 2008 4:29 PM, David Thibault <[EMAIL PROTECTED]>
> wrote:
> > OK, I have now bumped my tomcat JVM up to 1024MB min and 1500MB
> max.  For
> > some reason Walter's suggestion helped me get past the 8MB file upload
> to
> > Solr but it's still choking on a 32MB file.  Is there a way to set
> > per-webapp JVM settings in tomcat, or is the overall tomcat JVM
> sufficient
> > to set?  I can't see anything in the tomcat manager to suggest that
> there
> > are smaller memory limitations for solr or any other webapp (all the
> demo
> > webapps that tomcat comes with are still there right now).
> > Here's the trace I get when I try to upload the 32MB file:
> >
> >
> > java.lang.OutOfMemoryError: Java heap space
> >         at java.io.ByteArrayOutputStream.write(
> ByteArrayOutputStream.java
> > :95)
> >         at sun.net.www.http.PosterOutputStream.write(
> PosterOutputStream.java
> > :61)
> >         at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(
> StreamEncoder.java
> > :336)
> >         at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(
> StreamEncoder.java
> > :395)
> >         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
> >         at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
> >         at com.itstrategypartners.sents.solrUpload.SimplePostTool.pipe(
> > SimplePostTool.java:167)
> >         at
> com.itstrategypartners.sents.solrUpload.SimplePostTool.postData(
> > SimplePostTool.java:125)
> >         at
> com.itstrategypartners.sents.solrUpload.SimplePostTool.postFile(
> > SimplePostTool.java:87)
> >         at com.itstrategypartners.sents.solrUpload.Uploader.uploadFile(
> > Uploader.java:97)
> >         at
> com.itstrategypartners.sents.solrUpload.UploaderTest.uploadFile(
> > UploaderTest.java:95)
> >
> > Any more thoughts on possible causes?
> >
> > Best,
> > Dave
>

Reply via email to