Code Monkey home page Code Monkey logo

Comments (6)

sergey-tihon avatar sergey-tihon commented on September 13, 2024

Option 1 Try IIS (not IIS express) - #15 (comment)

Option 2 Try to increase stack size - #16 (comment)

from stanford.nlp.net.

mehmetilker avatar mehmetilker commented on September 13, 2024

Thank you for your quick reply.
I could not try on my local but it worked on Azure.
So it is a problem related with IIS Express I assume.

from stanford.nlp.net.

mehmetilker avatar mehmetilker commented on September 13, 2024

I would like to add some observations..

As I see leaving IIS express is some cumbersome just for this problem I tried to increase stack size with utilizing Thread class but unfortunately it is not possible to handle return value in asp.net project.
Not directly related but close to it; other option is Task.Run but there is no way to set maxStackSize...

There should be setting for IIS Express.

new System.Threading.Thread(() =>
            {

            ......

                pipeline.annotate(document);
           ......
            }, 414565).Start();

from stanford.nlp.net.

mehmetilker avatar mehmetilker commented on September 13, 2024

For those who is wondering a simple solution:

By default II express is working in 32 bit mode.
And according to this article https://support.microsoft.com/en-us/kb/932909
" In Windows Server 2008 and higher, the maximum stack size of a thread running on 32-bit version of IIS is 256 KB, and on an x64 server is 512 KB."
All we need is little bit higher then 400K for depparse annotator.

So we can set 64bit version of IIS Express in VS 2015 Tools> Options> Projects and Solutions > Web Projects > Use the 64 bit version of IIS Express for web sites and projects

happy codings...

from stanford.nlp.net.

sergey-tihon avatar sergey-tihon commented on September 13, 2024

Thank you @mehmetilker !

from stanford.nlp.net.

mehmetilker avatar mehmetilker commented on September 13, 2024

You are welcome @sergey-tihon. Thank you for your effort.

from stanford.nlp.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.