how is intellij doing for you with our monorepo? i...
# contributing-to-airbyte
c
how is intellij doing for you with our monorepo? i've noticed mine start to chug alot.
u
slow as a hell. Probably it is a good idea to exclude some modules or open subdirectories as a separate proj, but using it as monorepo makes my room hot during reindexing 🙂
u
It’s been bad for a while for me and the motivation behind wanting to 100% split off connector builds. Building connectors creates too many files that are then indexed constantly. When new connectors are added it adds a 5-10 min indexing cost to switching branches (in both directions!) I’ve been trying something new where I’m explicitly excluding
airbyte-integrations/connectors
in intellij and commenting out the connector subproject discovery in settings.gradle in hopes that it will speed things up, but that’s still problematic.
u
That’s because you don’t have 64GB RAM 😜
u
u
@s swears by ^
u
on a more serious note, do people change their intellij custom vm settings? I do and although I've noticed slowing down, it's not that bad for me (maybe ~5 mins) and I have 3 Intellij windows open usually (airbyte cloud, python and normal airbyte)
d
i should probably play with those settings. i don't remember how i set them.
u
it's not build times that are hurting me actually, it's the time intellij is taking to index and sync files.
u
You can set the VM options on the startup window:
l
Copy code
-Xms128m
-Xmx3096m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
u
^ works well for me
u
Thanks for sharing this. May be worth putting in our docs somewhere for other new hires (or arguably contributors)!
u
oh good idea!
u
Is -Xmx3096 a typo? Probably 4096?