IntelliJ IDEA Ultimate is extremly slow on mac M1 - intellij-idea

I'm using Mac Air M1 and trying to run IntelliJ Ultimate.
I've read some issues on JetBrains YouTrack and it seems that a lot of people are pretty satisfied with their experience. So, I think something is wrong with my environment and I can't find out what
Steps I've done:
Rebooted my Mac
Invalidated Caches & Restarted IDE
Reinstalled IntelliJ
Deleted "Caches" and "Application Support/JetBrains" directories and then reinstalled IDE
Checked if I'm using a default Java Runtime version
Checked if I'm using Intel version of IDE
Disabled Antialiasing
Closed "heavy" apps like Google Chrome
Installed Atom Material Icons plugin
Downloaded prebuilt shared indexes
Modified .vmoptions and added
-Dsun.java2d.opengl=true
-Dsun.java2d.opengl.fbobject=false
Disabled Smooth scrolling
I'm not using external display, mac is connected to power outlet
Here is my environment:
IntelliJ:
IntelliJ IDEA 2022.1 (Ultimate Edition)
Build #IU-221.5080.210, built on April 12, 2022
Runtime version: 11.0.14.1+1-b2043.25 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Non-Bundled Plugins:
com.mallowigi (64.0.0)
Dart (221.5588)
io.flutter (66.0.4)
Kotlin: 221-1.6.20-release-285-IJ5080.210
Mac:
Model Name: MacBook Air
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
OS: macOS Monterey Version 12.1
Related YouTrack topics
https://youtrack.jetbrains.com/issue/IDEA-268203
https://youtrack.jetbrains.com/issue/JBR-3237
https://youtrack.jetbrains.com/issue/JBR-2732
UPDATE #1:
Moved issue to JetBrains YouTrack: https://youtrack.jetbrains.com/issue/IDEA-293523/IntelliJ-IDEA-Ultimate-is-extremly-slow-on-mac-M1

You can see the memory usage of your application and increase it accordingly if required. In my case, it was slow because of low memory.
Enable the memory indicator by checking it (View -> Appearance -> Status Bar Widgets -> Memory Indicator). With this, now you can see memory usage details in the bottom right corner of your Intellij IDE.
Increase the memory if it's exhausted more than 80% of available memory by following: Click on Help -> Change Memory Settings -> <>)

Try EAP version of IntelliJ IDEA 2022.2, which runs on JBR 17 with Metal framework.

I had the same issue with same MBA.
I changed the runtime to OpenJDK 18 and now it is totally smooth :)
Help -> Find action -> Choose boot runtime for the IDE
I experimented with a few other JDKs, maybe Azul was the fastest.
Also, I have updated Xmx:
Help -> Edit Custom VM Options and updated to 2048m
To me, seems like the issue is resolved now or at least way better.

I download the M1 version for intellij ultimate and I have a incredible improve in performance.
BTW: I have a macbook pro 13' with 16gb ram and 1TB ssd
intellij environment
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Build #IU-221.5591.52, built on May 10, 2022
Licensed to ********************
Subscription is active until ********.
Runtime version: 11.0.14.1+1-b2043.45 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Registry:
*************
Non-Bundled Plugins:
monokai-pro (1.8.1)
com.vincentp.gruvbox-theme (0.5.4)
com.intellij.plugins.macoskeymap (221.5591.19)
com.github.rmatafonov.cucumber-scenarios-indexer (1.1.0)
com.github.chencn.yamlandprops (1.0.5)
net.lagerwey.cucumber-kotlin (2022.1.0)
dev.eltonsandre.intellij.spring.assistant.plugin (1.5.2)
Kotlin: 221-1.6.21-release-337-IJ5591.52

From dive deep into community i found this reddit post https://www.reddit.com/r/IntelliJIDEA/comments/q05b29/intellij_idea_for_m1_macbook/ its basicly tells you to install Rosetta2, also battery-consuming, I think it just best if you use mac mini setup(not a macos user, but wish to anw)

Related

PhpStorm lost all favorites and local branches

After opening PhpStorm I saw that all favorites and local branches are gone. Only possible cause that comes to mind is that I saw an error that WSL2 had to shut down with an error.
When I go to File > Local History it's also blank.
Can this somehow be related to WSL2 shutting down incorrectly and is there a way to restore everything?
Is there a way to store these settings online somewhere?
The closest thing I could find as a solution is this: PhpStorm lost all projects & settings after power failure
Version info.
PhpStorm 2021.2.2
Build #PS-212.5284.49, built on September 16, 2021
Subscription is active until November 8, 2022.
Runtime version: 11.0.12+7-b1504.28 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 6
Registry: run.processes.with.pty=TRUE

IntelliJ Community edition hangs a lot while typing

I am using IntelliJ Community edition for for Automation test using Java. I have observed that IntelliJ stops responding for while when I am typing. Some times it takes like 1 to 2 minutes to respond while I type. Even it goes blank when I switch the windows between the applications.
I am using:
**OS:** Windows 10 Pro, 64 bit OS
**IntelliJ version:**
IntelliJ IDEA 2020.1.4 (Community Edition)
Build #IC-201.8743.12, built on July 21, 2020
Runtime version: 11.0.7+10-b765.65 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Non-Bundled Plugins: gherkin, cucumber-java
Does anybody is facing this issue?

intellij plugin SDK can't resolve java

my plugin project can't find any java classes.
How can I make my project compile again?
I'm developing on manjaro
project: https://github.com/axaluss/power-mode-intellij-plugin
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.1.2
DISTRIB_CODENAME=Juhraya
DISTRIB_DESCRIPTION="Manjaro Linux"
IntelliJ IDEA 2019.2.4 (Community Edition)
Build #IC-192.7142.36, built on October 29, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.2.21-1-MANJARO
GC: ParNew, ConcurrentMarkSweep
Memory: 1948M
Cores: 6
Registry:
Non-Bundled Plugins: Batch Scripts Support, CMD Support, dcevm, de.ax.powermode, mobi.hsz.idea.gitignore, net.seesharpsoft.intellij.plugins.csv, org.intellij.scala, BashSupport, org.toml.lang, some.awesome
I figured it out.
Somehow the "project sdk" was broken.
I set it up freshly while I was figuring it out.
But somehow deleting it and creating it a second time fixed it.

Xcode 11 beta crashes when starting in Virtual machine

i have just downloaded Xcode 11 beta and installed in a vm environment. When trying to start a new playground or project, xcode quits with following error code. Any idea how to solve ?
Process: Xcode [426]
Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.0 (14855.18)
Build Info: IDEFrameworks-14855018000000000~13
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [426]
User ID: 501
Date/Time: 2019-06-08 08:13:37.785 -0700
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Anonymous UUID: CB32DBDA-4F6E-4212-F810-C52C80FFD0CD
Link to full error:
https://pastebin.com/fFhcadtZ
This should probably be a comment, not an answer, but I lack the reputation to do so. Here is the xcode developer who developed the minimap indicating that while the minimap indeed does require metal, xcode should not crash when metal is not available. Hopefully he implements a patch to fail gracefully in one of the next builds. As of right now, there is no workaround. The reply to the thread:
defaults write http://com.apple .dt.Xcode DVTTextShowMinimap -bool NO
does not prevent the crash, as mentioned there.
It is fixed in XCode 11 beta 2, available on developer.apple.com !!!
June 17 2019.
You don't need MacOS Catalina, only Mojave 10.14.4 and up (current is 10.14.5).
I used VMware on Windows to install Mojave and XCode beta 2.
I attempted the same with Parallels (with tools installed), and also observed a crash. I suspect the problem is with the virtualization software lacking support for Metal. Notice the stack trace on the main thread:
0 com.apple.dt.SourceEditor 0x0000000120ccb5cb specialized
static MinimapMetalLinesLayer.defaultDevice() + 491 1
com.apple.dt.SourceEditor 0x0000000120cc959c
MinimapMetalLinesLayer.init() + 284
The "Minimap" is a new feature in Xcode 11, it's a birds eye view of the source code in a column on the right (similar to Sublime text edit). Also notice the mention of Metal, Apple's graphics API. To test this theory, I opened Xcode 10 (in the same VM) and attempted to build one of Apple's examples. I got the following error, which seems to confirm my suspicion that Parallels is unable to support apps using Metal.
2019-06-09 09:15:17.875253-0400 HelloTriangle[652:7547] *** Assertion
failure in -[AAPLViewController viewDidLoad],
/Users/ZestyMeta/Downloads/UsingARenderPipelineToRenderPrimitives/Application/AAPLViewController.m:27
2019-06-09 09:15:17.875403-0400 HelloTriangle[652:7547] Failed to set
(contentViewController) user defined inspected property on (NSWindow):
Metal is not supported on this device
I haven't attempted installing macOS Catalina / Xcode 11 in VirtualBox, VMWare, et al. but unless they support Metal then this crash will happen there as well. If you're testing out Catalina (which is required for SwiftUI on macOS), unfortunately it seems the solution at this time is to install on a spare device or dual boot.

Upgrade to Mac OS El Capitan, intellij zoom stopped working

I am running intellij 14.1.5 and recently updated my Mac Air to El Capitan OS version.
I used to be able to use the gestures to increase the editor font size and now it has stopped working.
I found the accessibility pane in preferences on the Mac and set zoom there so the gesture works everywhere BUT intellij.
Am I missing something?
I think they do not support EI yet. Check out the system requirements:
Mac OS X 10.5 or higher, up to 10.9 (Mavericks)
1 GB RAM minimum, 2 GB RAM recommended
300 MB hard disk space + at least 1 GB for caches
1024x768 minimum screen resolution Java 6
There is a suggestion you can try beta version of IntelliJ IDEA 15. if you are a developer, you better keep you system in stable version because upgrade to new version of system software company need time to upgrade there software to support the new system.