Netbeans running really really slow on my laptop - netbeans-7

I am using the OS Ubuntu 12.04 and I have installed Netbeans 7.0.1 on it, my laptop's configuration is pretty good but still Netbeans runs really really slow on it and it hangs completely after using it only for a few mins. On doing some research I found that many people suggested to add the following line in the netbeans.conf file "netbeans_jdkhome="/usr/lib/jvm/java-1.7.0-openjdk-amd64"
which I did but nothing has changed. It still lags a lot.

I can think of a couple of things I would try. Firstly, upgrade to NetBeans 7.4 as recent versions of NetBeans do more work in background threads, improving the general responsiveness of the application.
Secondly, in the etc directory of the NetBeans install (on Windows) there's a netbeans.conf. Try editing the netbeans_default_options property to set -J-Xmx to something large, maybe 256m or 512m. That should give NB a bit more space to play with.

Related

setting up monodevelop in xfce

I use this solution to have a VNC desktop session with a remote Ubuntu PC https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04
I want to setup monodevelop on this machine. I followed the instructions and am able to run monodevelop and write code, however when I attempt to run it I get "Could not connect to the debugger". I tried various solutions suggesting changing environment variables to force monodevelop to use xterm and it did not work, however I'm not positive I did it correctly as the solution was meant for gnome and the modifications to the command for XFCE were not clear to me. At this point I'd be willing to get paid support, but I'm not even sure where I could find any for my use case. Does anyone have experience getting monodevelop to work on XFCE? If not what is the best environment for getting it going (ideally a way where I could remote in too). I'm very accustomed to the RDP workflow where I can actually troubleshoot on a development server and be very close to the real world environment to get things running, then check-in and deploy. I think there are a lot of platform differences with monodevelop so I really really really want to develop on Ubuntu (remotely).

All ide from JetBrains launch extremely long on Arch Linux XFCE4

I have just installed fresh Arch Linux with XFCE4 and downloaded WebStorm. I did everything exactly as it is said in howto file (by executing .sh from bin folder). When i click on the WebStorm icon it looks like nothing is happening but suddenly after around 90s (and its min. value, i wonder how long it would be including project loading..) window pops up showing loading process.
I have pretty strong laptop with i7, 8gig of ram and SSD. There isn't any project loading also. It's fresh start. It used to work on Xubuntu, but it seems like i missed something during installation process or I dont know..
It's recommended to use OracleJDK not OpenJDK.
And try to trace what is happening while loading from terminal because if there is any error it will appear immediately.

Jetbrains IDE(s) failures

First my specs are an Intel i7 toshiba laptop with 8gigs of RAM running windows 8.1 with all the latest updates. When I first launch any of Jetbrains IDEs after install, it would ask me for my workspace location and then it would proceed to do nothing after than, but it stays in memory and slows down my entire system for about a minute, after that, the computer stops being slow and returns to normal but the program still does nothing (no GUI) but still remains in memory, what is going on??? Thanks in advance.
It's hard giving a definite answer to your question. But it sounds to me like you have a problem with your Java. Make sure you have it installed and at the latest version.
Also, try looking for matching bugs in the JetBrains bug tracker.
Replacing the jre folder within the IDE folder (pycharm,intelliJ,etc.) with one from an updated JDK install not JRE install.
ex:
JDK/jre7 copy over Jetbrains/IDE/jre
fixes the issue

OpenJDK's JDK location

I'm running Minecraft on a headless Linux server with OpenJDK. I've added a bunch too many mods and its lagging (even on my local network) without using too much CPU or memory (e.g. its lagging, but its still got resources it can use). So I'm pretty sure its a mod fault.
To save the hassle of removing/adding mods one by one to see whats causing the error, my research led me to VisualVM where you can profile the java application and see which entities are doing what and with what resources. With any luck it should point out the mod consuming the most resources, and the most ticks.
Given its a headless server, and VisualVM is a window/GUI application, I've successfully managed to get it running and passing the GUI back to my Windows client using X over SSH.
Trouble is now, that its telling me that I need to use JDK and not JRE. Which is fair enough. Except OpenJDK has JDK in its name, rendering all googling futile. I cannot for the life of me, find if JDK is included in OpenJDK, what its named, and where it may be located. The other problem is, most of the troubleshooting guides I find are for Windows, and dont help me find the JDK on linux.
As some background information, I'm running Debian, and I know OpenJDK's JRE is installed here: /usr/lib/jvm/java-7-openjdk-amd64/jre
Can someone tell me please, if JDK is in OpenJDK, or I need to install it as well? If I do need to install it, is there an OpenJDK equivelant for JDK? If its already included, can someone provide some tips on locating it, so I can point VisualVM at it instead of the JRE?
The OpenJDK has a JDK, but there is also a cut down version which is just the JRE. I would use locate javac and if it can't find it, you need to install the JDK.

Troubles with Xdebug 2.1.0, XAMPP 1.7.3, Win7 32bit

Looking for some help with getting xdebug to behave with my setup. My goal is to be able to debug Joomla code.
First let me preface saying that about a year ago I was able to get a version xdebug to work with Eclipse PDT 2.1 with xampp under Vista 32bit. However, now I'm on a new machine, and I wanted to get everything working with the latest versions. I did so by following through this walk-through. Now, trying to do the same thing I can't get it to work.
First, as per the walk-through, I downloaded php_xdebug-2.0.0-5.2.2.dll. Quickly realized that I needed an xdebug for php 5.3. So, I found the xdebugs Tailored Installation Instructions and followed that. My php.ini section looks as thus:
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension = "D:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=10000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\xampp\tmp"
So this got the xdebug to actually show up in the phpinfo(). But, in Eclipse when I Debug As Php Webpage, it at first appears to connect, however if I step to the next line of code the debugger just sits there saying it is stepping, indefinitely. Sometimes apache will crash. I tried ports 9000, and 10000 with no avail.
What I did find out is, if I use the the php_xdebug.dll that comes with XAMPP 1.7.3, I actually can connect and step without any issues, EXCEPT, that version of xdebug apparently has a major bug in it that causes all my variables to be listed as 'Uninitialized'. So it is basically useless, however, it does give some hope that I have some of this stuff set up correctly.
So, my current setup thus: Win7 32bit, XAMPP 1.7.3 (PHP 5.3.1, Apache 2.2.14), Eclipse PDT 2.2
I have very limited experience with basically all the tools here so I'm kinda at a loss of what to do. Any help would be greatly appreciated. I searched some of the other posts here with similar issue but most of them appear to be for older versions of these components.
your report is somewhat confusing. As far as I understand you, your setup works as soon as you replace the XDebug-dll. Then your (primary) problem cannot be related to your settings, as far as you also adjusted zend_extension, of course.
Though xdebug.remote_port=10000 seems odd. Std is 9000. If you use 9000, the you have to tell Eclipse in Window/Preferences/PHP/Debug/Debuggers to also listen to that port for XDebug.
Best
Raffael