Skip to content

Windows

Java heap error with RazorSQL on Windows 10

Java_logo

In working with some large table exports with RazorSQL, I ran into some Java heap errors. Here is how to fix it by throwing more memory at Java in the runtime parameters.

  1. Get the latest version on Java. I know, Oracle and all, but just get the latest version. At the time of this post, it was 1.80.91
  2. Go to the “Configura Java” application or the java Control Panel and then into the Java tab to view/edit runtime settings.
  3. Add an entry for the -Xms parameter. In my example, I gave it 3 gb more memory, but YMMV. I ended-up going with 4gbs 0r 4096m.

2016-05-24_10-02-43

 

That gave me a little more room in exporting some large tables from an old Sybase ASE database via RazorSQL since RazorSQL is a java program looking at the runtime for parameters.

Windows 10: First Take

Just installed. I have to say, I like it. It’s all Windows 8.1 but the Windows Explorer is more Windows 7. It has only been a few hours, but I’m doing fine on my Lenovo Yoga 2 Pro.

The killer feature for me is the implementation of virtual desktops. Apple never got it right and the various applications for OS X and Windows never really got it right. If you are used to the flexibility of the GUI in Linux or Solaris, you miss this when you don’t have it. The ability to keep applications open and maximized but off into their own desktop for organization is just such a great productivity aid.

Windows 10 virtual desktops on my Yoga 2 Pro
Windows 10 virtual desktops on my Yoga 2 Pro

So far, so good for now.

Term::ReadKey problems in Cygwin? Install the package vs. CPAN compile

I had an issue running Perl in Cygwin. I could install the modules I needed, but was unable to compile Term::ReadKey due to sgtty or some other challenges. I kept getting annoying messages around perl like this with “sgtty not found” and it seems to be an eternal issue. I found bug reports back to 2000!

ReadKeyerrors
Term::ReadKey in cygwin sgtty not found during cpan compile

I tried many different tactics within perl, but nothing worked. Turns out, there is a cygwin package you can install directly for this issue. You can run the setup.exe or setup64.exe for cygwin and select the

perl-Term-ReadKey

package to get the module going in perl under cygwin. You are also better-off long term on getting apt-cyg going in the cygwin environment to query and install packages easily in the environment and without the need to fire-up the setup.exe app each time you want to install a package.

Getting apt-cyg going in cygwin
Getting apt-cyg going in cygwin

Here is the install of Term::ReadKey via the setup apt-cyg:

Installing perl-Term-ReadKey via apt-cyg
Installing perl-Term-ReadKey via apt-cyg

Minimize the blur on Windows 8.1 scaled applications

If you have an ultrabook that can dish great resolution, Windows 8.1 does some interesting things around scaling in the UI. This has caused me some grief with my Lenovo Yoga 2 Pro that wants to dish 3200×1800 natively.

Lenovo Yoga 2 Pro Display Settings
Lenovo Yoga 2 Pro Display Settings

Windows 8.1 will try and do some scaling options for you and it feels like a bunch of adjustment areas that you just need to play with for a while to get what you like. You have scaling, screen resolution, magnifier, and other options in the various display settings to mess with. But, even if you do that, some apps can look a little blurry. This is along the lines of the issues Mac users have with their retina screens.

No matter what you do with the various display settings, you should also look at messing with the compatibiltity settings in Windows for the apps directly. If you have a shortcut pinned to your taskbar or on your desktop, you can right-click and go into properties.

disablescaling1

Once in the shortcuts properties, you can check a flag to disable the scaling Windows wants to do to to the application rendering under the compatibility tab. Check the disable scaling checkbox.

disablescaling2In my testing, this has helped tremendously on many different occasions. For example, on GoToMeeting it has been critical to kill the blur as Windows tries to offset the high DPI with scaling up or down. You can right-click the GoToMeeting icon when it is running to change the flag. It does require the application to be restarted to take effect.

This is not a silver bullet to fix blurred windows or fonts and it should be tried after you have done what you can inside the various display and fonts scaling areas in Windows Control panels.