Giter Club home page Giter Club logo

Comments (6)

StFS avatar StFS commented on June 15, 2024

@snorristurluson you have any pointers for increasing the memory limit of the gor shell?

from gor.

snorristurluson avatar snorristurluson commented on June 15, 2024

That's strange, the gor shell isn't set up any different from gorpipe.

Try the following to control the memory given to the JVM:
export JAVA_OPTS=-Xms2G -Xmx5G

from gor.

Shicheng-Guo avatar Shicheng-Guo commented on June 15, 2024

It is Interesting. JAVA_OPTS bring new error. Here is the command I used:

export JAVA_OPTS="-Xms2G -Xmx5G"
export MODULEPATH=/share/apps/compute/modulefiles/applications:$MODULEPATH
module load gor
cd /share/apps/compute/gor/
/share/apps/compute/gor/tools/build/install/tools/bin/gorshell
gor /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10 

Here is the error:

(base) [sguo2@comet-ln2 gor]$ export JAVA_OPTS="-Xms2G -Xmx5G"
(base) [sguo2@comet-ln2 gor]$ export MODULEPATH=/share/apps/compute/modulefiles/applications:$MODULEPATH
(base) [sguo2@comet-ln2 gor]$ module load gor
(base) [sguo2@comet-ln2 gor]$ cd /share/apps/compute/gor/
(base) [sguo2@comet-ln2 gor]$ /share/apps/compute/gor/tools/build/install/tools/bin/gorshell
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
(base) [sguo2@comet-ln2 gor]$ gor /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10
top: unknown option '1'
Usage:
  top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]

gor-comet-Shicheng-Guo-2020-2

from gor.

StFS avatar StFS commented on June 15, 2024

@Shicheng-Guo there are two issues here:

  1. you should not be using the gor command, instead you should be using the gorpipe command.
  2. when writing gorpipe commands, you need to quote the gor query to avoid your shell taking over the parsing of the line.

So try something like this:

gorpipe "/home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | top 10"

from gor.

Shicheng-Guo avatar Shicheng-Guo commented on June 15, 2024

@StFS these two reply really helpful!!

I agree with you gorpipe work well and don't affect linux bash. However, the following script works:

gorpipe /home/sguo2/janssen4/oasis/bin/gor/tests/data/gor/dbsnp_test.gor | head

gor-comet-Shicheng-Guo-2020-4

Thanks.

Shicheng

from gor.

StFS avatar StFS commented on June 15, 2024

@Shicheng-Guo yes, head works because that's a valid Linux command. In that case the gorpipe command is reading and outputting all the rows from the file you're querying but head is simply ignoring everything but the first few lines.

This is inefficient compared to using the GOR top command, as that will allow GOR to stop reading the file once it has read the number of rows requested.

from gor.

Related Issues (13)

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.