Use with Gateway

Answered

Will we ever be able to use this with the jetbrains gateway?

0
15 comments

What do you want to use with Gateway? 

You can already connect IntelliJ IDEA to remote gateway. See https://www.jetbrains.com/remote-development/gateway/

0

Datagrip. So the gateway sever can be connected to internal dbs. Would reduce need for vpn when needing to run queries.

0

Your scenario could be covered by SSH Tunnel: https://www.jetbrains.com/help/datagrip/configuring-ssh-and-ssl.html#connect-to-a-database-with-ssl-procedure

There is no exact date of Gateway support in DataGrip, but be sure that the work in progress, 

0

Konstantin Annikov

This would be super useful to have code inspection model running remotely, to reduce memory footprint on local machine

0

Tomas Kislan, could you please elaborate a bit? Do you experience high memory consumption? All inspections are running on the host.

0

Daniil on Macbook M1, I'm regularly seeing memory usage of 2.5GB, when having multiple databases loaded (like 15) (in a single Project)

>All inspections are running on the host.
I though that the whole point of remote development was, to have the heavy lifting offloaded to the remote .. isn't this the case for other jetbrains IDEs? Because this is have VSCode works

 

0

Sorry, I meant the remote instance that hosts the IDE. Could you please capture a memory snapshot (https://intellij-support.jetbrains.com/hc/en-us/articles/207241235), upload it to https://uploads.jetbrains.com/ and provide its ID?

0

Daniil

Upload id: 2022_12_08_24Yr2FNQcp2u9gjmD5GYVs (file: DB-223.7571.180_memory_tomaskislan_08.12.2022_12.17.32.zip)

currently 3.5GB of memory

0
Hi Thomas,

It took us some time to inspect the memory snapshot you uploaded. We may conclude that we haven't identified anything suspicious that could have caused inadequate memory consumption by the application.

If you're observing significant memory consumption, a legitimate way to spot it is by using an IDE memory indicator showing how much memory a Java application consumes at a particular time.
0

Aleksandr Molchanov

So that doesn't help me in any way. Also, it is really misleading, because even freshly start application consumes 1.2GB of memory, whereas indicator only shows 200MB.

That's what this thread is all about in the first place, to be able to offload some of the memory usage to a remote server with the Gateway, similarly as with other the Jetbrains products

0
Heap size never limits the total process memory, see this topic:

https://stackoverflow.com/a/13489882/104891

IDE memory indicator shows how much memory is used out of all the memory allocated to the IDE process.

The OS shows the memory currently allocated to the IDE as a program during its lifetime, and it is not the same as the heap size of the JVM process. OS native memory usage may be lower than the max memory allocated to IDEA or a bit larger (as it also includes native Windows dll libraries that JVM memory does not), or even a lot more than the max allocated JVM heap as OS could use swapping.

You can limit -Xmx to 1GB to get less total memory usage if your system has less than 8GB of RAM and your projects are small.

See also http://karunsubramanian.com/uncategorized/why-is-there-a-discrepancy-between-windows-task-manager-memory-and-java-heap
0

Aleksandr Molchanov 

I've actually stumbled on a different issue, trying to solve a similar issue with using intellij idea with database connection through Gateway
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360002473100/comments/17021943500306

Where it seems it should be working as expected

But this issue is about doing the same but with Datagrip, since there are users that pay for Datagrip but not for intellij (like me)

0
Hi Tomas,

I am afraid we have lost track of the originating issue. The previous ticket was related to memory consumption, but it's hard to tell how this community thread is related to the previous tickets. Therefore, please elaborate on your current scenario and the issues you stumbled upon.
0

> Will we ever be able to use this with the jetbrains gateway?

This is the original question of this ticket. About using Datagrip with Gateway

It just spiralled into memory consumption discussion, which is only partially relevant here

0
The gateway integration for remote development is not available in DataGrip. It's a separate product team, but there are feature requests you can upvote to:

https://youtrack.jetbrains.com/issue/GTW-5744/Support-for-remote-dev-in-DataGrip

https://youtrack.jetbrains.com/issue/CWM-6931/Support-Code-With-Me-in-DataGrip
0

Please sign in to leave a comment.