Skip to content

Out of memory : Java Heap Space / Engine timeout #2

@ericproulx

Description

@ericproulx

Hello,

We're experiencing problem with the engine. In our case, it always turns out to a

Out of Memory Exception

I modified the engine locally to add some heap space before starting Tailor. I only added these 2 java options

-Xms1024m -Xmx2048m

Now, the heap space problem seems to be resolved but I'm experiencing the CC::Analyzer::Engine::EngineTimeout

Here's the code to start analyzing
docker run --interactive --tty --rm --env CODECLIMATE_CODE="$PWD" --env ENGINE_MEMORY_LIMIT_BYTES="4096000000" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze --dev

Here's my .codeclimate file with running with the local engine

engines:
  tailor-eric:
    enabled: true
    exclude_paths:
    - DerivedData/**/*
    - petalmd/Automation\ Tests/**/*
    - petalmd/Supporting\ Files/**/*
    - PetalMD\ Integration\ Tests/**/*
    - PetalMD\ Unit\ Tests/**/*
    - PetalMD\ UI\ Tests/**/*
    - PetalMD\ Frameworks/**/*
    - petalmd/Images.xcassets/**/*
    - petalmd/Base.Iproj/**/*
    - petalmd/Frameworks/**/*
    - PetalMD.xcodeproj/**/*
    - PetalMD.xcworkspace/**/*
    - Pods/**/*
    - config/**/*
    - fastlane/**/*
    - features/**/*
    - "**.xib"
    - "**.storyboard"
    - "**.lock"
    - "**.ipa"
    - "**.rb"
    - "**.entitlements"
    - "**.strings"
    - "**.plist"
    - "Gemfile"
    - "Podfile"
ratings:
  paths:
  - "**.swift"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions