[opensuse] java on opensuse
I have a program I use regularly, that has both a linux version and a windows version, based on java. Normally I run it in linux, as I really don't like to boot up into windows. It is a trading/investment program called thinkorswim. The linux version requires installing oracle java jdk, while the windows version does not. In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk. Well, last night I was using the program in opensuse, and getting very frustrated with the delays that I was seeing, and the slowness, so I decided to try booting up into windows on my laptop and running it in that. O my goodness, it ran so much incredibly better and smoother and faster in windows. I had been assuming all along that because of the highly interactive nature of the program at certain times of the day, and internet traffic during market hours, it was just going to stagger during those times. But it only does that in linux, not in windows. This isn't enough to get me to switch to windows by any means, but it does give me some motivation to see if I can figure out how to make the program run more smoothly in linux. The vendor says that they don't offer technical support for linux, only for windows. They say that linux users are on their own. Ok, whatever. I am not going to get bent out of shape on that, except to know that there is really nothing I can do to get any help out of them. I have tried before, and it is not worth the effort. So, rather than trying to go for a quick fix, I am wondering if any of you are java experts out there that can direct me to the best start of self-educating on java? I am looking for some very basic stuff here at the beginning, like a "java for dummies" kind of thing. At the same time, if any of you are users of this platform and have figured out how to tweak java, or the platform, or both, in order to make it run more smoothly in linux, I would greatly appreciate knowing what you have done. Even though I am working in a full time non-technical job, and the use of this program is only a hobby on my own hours, it is probably worth it to me to really learn how to do it right through linux, rather than taking the easy way and trying to do it in windows. -- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
George from the tribe wrote:
The linux version requires installing oracle java jdk, while the windows version does not. In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk.
Probably a licensing thing, but it makes no big difference.
Well, last night I was using the program in opensuse, and getting very frustrated with the delays that I was seeing, and the slowness, so I decided to try booting up into windows on my laptop and running it in that.
I presume it is the GUI updates/interaction and such that are slow?
So, rather than trying to go for a quick fix, I am wondering if any of you are java experts out there that can direct me to the best start of self-educating on java? I am looking for some very basic stuff here at the beginning, like a "java for dummies" kind of thing.
There are such books out there, but they would teach you how to write java, not how to improve on thinkorswim. Assuming your PC is otherwise potent enough, I suspect some sort of graphics issue. Have you played with other JDKs ? Icedtea? -- Per Jessen, Zürich (0.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 02:35 PM, Per Jessen wrote:
George from the tribe wrote:
The linux version requires installing oracle java jdk, while the windows version does not. In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk.
Probably a licensing thing, but it makes no big difference.
Well, last night I was using the program in opensuse, and getting very frustrated with the delays that I was seeing, and the slowness, so I decided to try booting up into windows on my laptop and running it in that.
I presume it is the GUI updates/interaction and such that are slow?
I don't really know how to tell if that is what is causing the slowness. Here is an example - when I click on a tab that takes me to look at a chart, it is slow to switch over to that tab. When I click on the trade tab to put in an order, the order box is very slow to come up.
So, rather than trying to go for a quick fix, I am wondering if any of you are java experts out there that can direct me to the best start of self-educating on java? I am looking for some very basic stuff here at the beginning, like a "java for dummies" kind of thing.
There are such books out there, but they would teach you how to write java, not how to improve on thinkorswim.
Assuming your PC is otherwise potent enough, I suspect some sort of graphics issue.
I may try to run it out of a lightweight desktop like LXDE, instead of the heavy Plasma. Perhaps that would require less power for the operating system's graphical interface, and free up the system to commit to the program. I will try this and see if it helps.
Have you played with other JDKs ? Icedtea?
I was thinking of trying to install the latest JDK, and I just downloaded it from Oracle. But I haven't gotten there yet. I don't think Icedtea will work, because the program specifically looks for Java 8 to be installed before it tries to run.
-- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Do you know if it is generally slow accessing the sites from which it is getting data? Maybe there is a name lookup or something that it causing the delay. Can you access the data sources some other way just to check? Perhaps traceroute to a data source site? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 06:04 PM, Roger Oberholtzer wrote:
Do you know if it is generally slow accessing the sites from which it is getting data? Maybe there is a name lookup or something that it causing the delay. Can you access the data sources some other way just to check? Perhaps traceroute to a data source site?
Wow, that's hard to do. I am sure someone would know how to do it, but I wouldn't know how to find out how to trace those data sources. I will have to do more research on that one. -- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 03:50 AM, George from the tribe wrote:
I may try to run it out of a lightweight desktop like LXDE, instead of the heavy Plasma. Perhaps that would require less power for the operating system's graphical interface, and free up the system to commit to the program. I will try this and see if it helps.
Hi George, this is non-technical and anecdotal, however I too rely on a Java program heavily. In my case it is called TheBrain. I used it on OS X for years and have switched to openSUSE about 1.5 years ago. I too have noticed a big difference in performance and was frustrated with it. However about a week ago I switched from KDE/Plasma to Xfce and at least for me all performance worries are a thing of the past (complete reinstall / selecting Xfce in the installer as DE - not sure that makes a difference). My PC has 4 i7 cores and the usual Intel graphics. So it should have had enough steam in any case. One day I simply realized that all I use in KDE is the launcher and Okular and that it really is overkill for me. You might want to try just installing the Xfce pattern via Yast and log into that. See if it makes a difference. /Sven -- Fingerprint: D7CA F2DB 658D 89BC 08D6 A7AA DA6E 167B 8F54 1FB6 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 15 Dec 2016 09:44:36 +0800, George from the tribe wrote:
I have a program I use regularly, that has both a linux version and a windows version, based on java. Normally I run it in linux, as I really don't like to boot up into windows. It is a trading/investment program called thinkorswim.
The linux version requires installing oracle java jdk, while the windows version does not. In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk.
[long snip] I run java program in openSUSE as well and they work well. I don't know java too much, these are only thoughts: -Are you sure you need jdk? Have you tried if jre fits the requirements? I don't think it determines the speed but might make things simpler. -How did you install java? There's a good SDB article on it. You have to make sure when you run java you run the intended version and not another one (if you have several java installed). You have to set alternatives correctly. See: https://en.opensuse.org/SDB:Installing_Java -When you start java do you start it in cli? Eg. java -jar ... If you run it in cli it might write error and warning messages that might help identify the problem. -You can change the memory java uses when running with -Xmxn switch, and enable more memory. See man java I don't know how much is the default. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 05:31 AM, Istvan Gabor wrote:
I run java program in openSUSE as well and they work well. I don't know java too much, these are only thoughts:
-Are you sure you need jdk? Have you tried if jre fits the requirements? I don't think it determines the speed but might make things simpler.
I too run a number of apps that are purely Java under openSuse. I can't compare that to running under Windows asn I'm Windows-free. While these apps don't make use of the 'Net as the trading program does, they do updates internal stuff from the net, particularly checking on each startup. That startup, even from CLI, shows no particular delay over native code programs that do similar. I agree with others that it should be about a network problem. That being said .. Over a decade ago I set up a system for a lady who wanted to be a day-trader. I don't recall if the program was Java or not, but I do recall that while it did run on the single TCP/ connection, it ran much better, after talking to tech support, after opening up UDP ports in the NAT'ing router here ISP supplied. I understand many games are like that too. Perhaps you could ask tech support about this while pretending to be a Windows user? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-12-15 15:59, Anton Aylward wrote:
Perhaps you could ask tech support about this while pretending to be a Windows user?
But the windows version of that program would need the same ports, and it runs fast. I rather think that the developers of the Linux version of the application have done a bad job. After all, the company refuses to support the Linux version they provide. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlhStokACgkQja8UbcUWM1xnnAEAhiujrVrFEA33b4IObEy9fFr9 5heSWDeG3ZnK4sjatjcA/1XTu1i6OC+YfAcLEEeSBcPFIkln53QWB+ho0rfvi3xH =xoZK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2016-12-15 15:59, Anton Aylward wrote:
Perhaps you could ask tech support about this while pretending to be a Windows user?
But the windows version of that program would need the same ports, and it runs fast.
I rather think that the developers of the Linux version of the application have done a bad job.
When it's Java, presumably it's the same code. Dunno, I've never written anything for both platforms, but isn't that the whole idea of Java - write once, run everywhere? -- Per Jessen, Zürich (0.6°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-12-15 16:39, Per Jessen wrote:
Carlos E. R. wrote:
I rather think that the developers of the Linux version of the application have done a bad job.
When it's Java, presumably it's the same code. Dunno, I've never written anything for both platforms, but isn't that the whole idea of Java - write once, run everywhere?
Yes, that's the idea, but there are some differences. I don't know which, but for instance: The Spanish tax administration provides (free) an application to fill the tax form: http://www.agenciatributaria.es/AEAT.internet/en_gb/renta/padre.shtml (English version page) Well, they provide a Windows version, a Linux one and a Mac one. Plus a compressed zip that I think is valid for all systems, so what is different is the installer. In the case of Linux, the installer is a bash script with the data added to the end of the text file. This administration does, of course, support users having problems on Linux. Of course! They want to get our money, so they will not make extra trouble by not supporting some users! Other administrations are not so helpful, though. It is possible that the program has some differences internally, like paths for saving data. Dunno. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlhS6b0ACgkQja8UbcUWM1yMVQD/dbyj512xjOGeGeoXwQ7OpZvh RbW5wfjlrk/PpjaYlQYA/iT6HpDATJGxLciz7FtYdS8vlz5KJNmAqpkPear9A99B =fNQK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 03:44 AM, George from the tribe wrote:
how to tweak java, or the platform, or both, in order to make it run more smoothly in linux
Hi George - did see some old stuff on "HowTo Speed up ThinkorSwim Chart Loading time on any Java platform" https://www.elitetrader.com/et/threads/howto-speed-up-thinkorswim-chart-load... .......... - believe there are several Ubuntu users of your same program ......... a 'StartPage' search for "running thinkorswim on Linux" turns up a ton of stuff ...... cheers ellan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 08:42 PM, ellanios82 wrote:
On 12/15/2016 03:44 AM, George from the tribe wrote:
how to tweak java, or the platform, or both, in order to make it run more smoothly in linux
Hi George - did see some old stuff on
"HowTo Speed up ThinkorSwim Chart Loading time on any Java platform"
https://www.elitetrader.com/et/threads/howto-speed-up-thinkorswim-chart-load...
..........
- believe there are several Ubuntu users of your same program
.........
a 'StartPage' search for "running thinkorswim on Linux"
turns up a ton of stuff
Thanks, this is another path that I will try and follow. So far I have adjusted the memory requirements on the program, installed LXDE, and made the adjustment to the start script that is suggested on elite trader. It seemed to make it run a bit faster, but not good enough for the program to do what I want it to do. I will keep after it, and will work on java.
......
cheers
ellan
-- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 03:44 AM, George from the tribe wrote:
how to tweak java, or the platform, or both, in order to make it run more smoothly in linux Hi George : read TOS instruction that firewall Ports 7001, 7002, and 443 need to be open
.......... regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/16/2016 04:09 AM, ellanios82 wrote:
TOS instruction that firewall Ports 7001, 7002, and 443 need to be open
ok, so I created a file and called it tos-server; ## Name: ThinkOrSwim server ## Description: ports for the ThinkOrSwim trading program # space separated list of allowed TCP ports # copy this file into the directory /etc/sysconfig/SuSEfirewall2.d/services TCP="7001" "7002" "443" I put this in the /etc/sysconfig/SuSEfirewall2.d/services directory. Then on the command line I ran this as root ------------------------ tribetrekDell:/home/george # SuSEfirewall2 <38>Dec 16 18:51:59 SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ... <38>Dec 16 18:51:59 SuSEfirewall2: using default zone 'ext' for interface wlan1 <38>Dec 16 18:51:59 SuSEfirewall2: Firewall rules successfully set ------------------------ But when I run nmap, here is what it shows: -------------------------------- tribetrekDell:/home/george # nmap -sS -O 127.0.0.1 Starting Nmap 6.47 ( http://nmap.org ) at 2016-12-16 18:52 PHT Nmap scan report for localhost (127.0.0.1) Host is up (0.000020s latency). Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 631/tcp open ipp Device type: general purpose Running: Linux 3.X OS CPE: cpe:/o:linux:linux_kernel:3 OS details: Linux 3.7 - 3.15 Network Distance: 0 hops OS detection performed. Please report any incorrect results at http://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 3.97 seconds ------------------------------- So if I go to Yast -> System -> Services Manager, it shows the following 2 entries for firewall: SuSEfirewall2 Disabled Inactive SuSEfirewall2_init Disabled Inactive When I go to Yast -> Security and Users -> Firewall, it starts off with a warning that says "Another firewall active" and then it says that if I configure the firewall here it may cause some problems. So I don't really know what to do. In the firewall configure tool in yast, I went to Allowed Services -> Advanced and entered ports 443 7001 7002 under TCP, but it doesn't seem to do anything. Also it says that the firewall is not running. I assume that I have some kind of firewall running, because I use ssh to sync my laptop and my desktop all the time, and that uses port 22, as can be seen from the nmap command. -- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-12-16 12:18, George from the tribe wrote:
On 12/16/2016 04:09 AM, ellanios82 wrote:
TOS instruction that firewall Ports 7001, 7002, and 443 need to be open
ok, so I created a file and called it tos-server; ## Name: ThinkOrSwim server ## Description: ports for the ThinkOrSwim trading program # space separated list of allowed TCP ports # copy this file into the directory /etc/sysconfig/SuSEfirewall2.d/services TCP="7001" "7002" "443"
I put this in the /etc/sysconfig/SuSEfirewall2.d/services directory. Then on the command line I ran this as root
That's not enough. The new service must be referenced in the SuSEfirewall2 main file.
So if I go to Yast -> System -> Services Manager, it shows the following 2 entries for firewall: SuSEfirewall2 Disabled Inactive SuSEfirewall2_init Disabled Inactive
systemctl status SuSEfirewall2 systemctl enable SuSEfirewall2 systemctl start SuSEfirewall2 systemctl status SuSEfirewall2
I assume that I have some kind of firewall running, because I use ssh to sync my laptop and my desktop all the time, and that uses port 22, as can be seen from the nmap command.
If you have a different firewall running, you should know. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlhTz6YACgkQja8UbcUWM1w71QD+Kw1PuDV/w4iO8AYBhFSrChMH YOCRO8lPSU/Kmqmu2EgA/Aqk4B2cL6C3IGZ5f5GW1fgkmq2zAgvHlxHe/k25qlkr =204r -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/16/2016 01:27 PM, Carlos E. R. wrote:
systemctl status SuSEfirewall2 systemctl enable SuSEfirewall2 systemctl start SuSEfirewall2 systemctl status SuSEfirewall2
I assume that I have some kind of firewall running, because I use ssh to sync my laptop and my desktop all the time, and that uses port 22, as can be seen from the nmap command. If you have a different firewall running, you should know.
- in addition to SuSEfirewall2 , your router may have another ? [ thus will also need to open Ports on router's firewall] ........ cheers -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/16/2016 07:27 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2016-12-16 12:18, George from the tribe wrote:
On 12/16/2016 04:09 AM, ellanios82 wrote:
TOS instruction that firewall Ports 7001, 7002, and 443 need to be open
ok, so I created a file and called it tos-server; ## Name: ThinkOrSwim server ## Description: ports for the ThinkOrSwim trading program # space separated list of allowed TCP ports # copy this file into the directory /etc/sysconfig/SuSEfirewall2.d/services TCP="7001" "7002" "443"
I put this in the /etc/sysconfig/SuSEfirewall2.d/services directory. Then on the command line I ran this as root
That's not enough. The new service must be referenced in the SuSEfirewall2 main file.
So if I go to Yast -> System -> Services Manager, it shows the following 2 entries for firewall: SuSEfirewall2 Disabled Inactive SuSEfirewall2_init Disabled Inactive
systemctl status SuSEfirewall2 systemctl enable SuSEfirewall2 systemctl start SuSEfirewall2 systemctl status SuSEfirewall2
I assume that I have some kind of firewall running, because I use ssh to sync my laptop and my desktop all the time, and that uses port 22, as can be seen from the nmap command.
If you have a different firewall running, you should know.
- -- Cheers / Saludos,
Carlos E. R.
On 12/15/2016 10:59 PM, Anton Aylward wrote:
On 12/15/2016 05:31 AM, Istvan Gabor wrote:
That being said .. Over a decade ago I set up a system for a lady who wanted to be a day-trader. I don't recall if the program was Java or not, but I do recall that while it did run on the single TCP/ connection, it ran much better, after talking to tech support, after opening up UDP ports in the NAT'ing router here ISP supplied. I understand many games are like that too.
Perhaps you could ask tech support about this while pretending to be a Windows user?
That is a good idea, and next week I am going to get in touch with their tech support and see about what ports are important to have open. I am pretty convinced now that it is a network issue and not a graphics issue, because the slowness gets worse during trading hours, when millions of people around the world are accessing various market servers in order to trade. However, even with the slowness of the program, it really only gets slow when running it under Linux, and not when running it under Windows. So, with that said, I am going to try and resurrect this thread, and I am going to seek to understand what exactly is going on with my firewall. So, for my firewall, I see 2 contradictory things here. First, on my laptop, when I go to Yast -> Security -> Firewall and open it up, it says "Current Status: Firewall is not running." If I click to start it, it starts running. But what it is doing, I don't know. I have been running thinkorswim with this firewall apparently disabled (which I didn't know until now). I would think that should make things free and open, right? I mean, if there is no firewall, why would that slow things down, especially if this is the only program I am using to connect to the internet? Even if I don't have a browser open or my mail program open, during market hours, thinkorswim really slows down. It slows down not only in loading charts, but just in general operation, like switching tabs from one screen to another. I considered that perhaps there is some other firewall running on my system, that is not controlled by the Yast utility? That is because as you can see from a response I posted on 12/16, yast told me I was running another firewall when I opened the firewall manager. It is not doing that anymore, and I have no idea why it would have stopped. I can log in with ssh from my desktop to my laptop whether or not the firewall is running on my laptop. So I guess my question is, is there a difference between SuSEfirewall and SuSEfirewall2? When I made a configuration file to put into /etc/sysconfig/SuSEfirewall2.d/services, did that only configure SuSEfirewall (which seems to be controlled by yast) and not SuSEfirewall2 (which seems to be controlled by files in this directory)? -- George Box: 42.2 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.2 | KDE Plasma 5.8 | Core i7-4710HQ | 64 | 16GB Laptop #2: 42.2 | KDE Plasma 5.8 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2016-12-24 03:56, George from the tribe wrote:
So I guess my question is, is there a difference between SuSEfirewall and SuSEfirewall2?
It is the same firewall, just two scripts to start it. When you do a change to the firewall, just call "SuSEfirewall2" to activate the changes. Different commands: systemctl status SuSEfirewall2 systemctl enable SuSEfirewall2 systemctl start SuSEfirewall2 should be it, once in life. Then systemctl status SuSEfirewall2 to confirm. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlhd5ksACgkQja8UbcUWM1zu8wD/bI62/FCFSf6SIQ9ZJ6YiPGy4 LgbbKOzkWrqVObyc0O8A+gJt9S2osGYW0r7GP1kFi/2Y7kPUKdp9zzC6Lc3bTReI =MuQ1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/14/2016 07:44 PM, George from the tribe wrote:
In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk.
What does that mean? Have they made changes to the Java runtime? -- Glenn Holmer (Linux registered user #16682) "After the vintage season came the aftermath -- and Cenbe." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2016 07:42 AM, Glenn Holmer wrote:
What does that mean? Have they made changes to the Java runtime?
Nah, many Java programs have a Windows installer that packages the JRE with it and installs it in the same directory as the program. They also create launch icons that make sure that particular JRE is used when the program starts. The main reason here is that they tested their program against that particular JRE version and to prevent Windows users from having to install Java manually in case they don't have it yet. This of course brings with it other problems (machines with many different JRE versions, very old JRE's sticking around etc.) OS X for the longest time came with it's own JRE pre-installed and in later versions it would detect Java programs and offer to download the latest JRE. Linux users are generally regarded as technical enough to install a JRE by themselves or have the JRE already installed by their distribution. With most commercial java software you will find that they are only willing and able to support the Windows version and offer the OS X / Linux versions as "on your own risk". This more than anything else highlights the problem with non-open software. If the vendor doesn't recognize you / your environment not as attractive enough ... though luck. /Sven -- Fingerprint: D7CA F2DB 658D 89BC 08D6 A7AA DA6E 167B 8F54 1FB6 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 15.12.2016 02:44, George from the tribe wrote:
I have a program I use regularly, that has both a linux version and a windows version, based on java. Normally I run it in linux, as I really don't like to boot up into windows. It is a trading/investment program called thinkorswim.
The linux version requires installing oracle java jdk, while the windows version does not. In windows, they said that it brings its own java with it or something like that, so you don't have to install jdk.
Well, last night I was using the program in opensuse, and getting very frustrated with the delays that I was seeing, and the slowness, so I decided to try booting up into windows on my laptop and running it in that.
Java often runs faster on Linux than on Windows because Linux has less "fat". Try to give the app more RAM: "java -XmxNm ..." to give it "N" megabytes. My guess is that a start script on Windows does that and you're missing this script on your Linux box. That usually solves the problem. A bit of terminology: JDK is the "Java Development Kit" which contains the Java compiler. Most programs don't need that. Your windows version probably comes with the JRE - Java Runtime Environment. The JDK is JRE + development tools. Any version of Java 8 (Iced Tea, Oracle, IBM's V9) should be able to run the program. Iced Tea is Oracle Java without the proprietary parts (they were rewritten). Iced Tea 8 and Oracle 8 should behave very similar since they share about 99% of the code (Java 7 versions were a different matter; I can't recommend any version of Iced Tea 7). Java code, like all code, can be incredibly slow when the developer makes mistakes. A good Java developer can achieve the same performance in code as a good C++ developer. With Java 1.4, most performance problems were under control and the situation has only improved since. With one exception: Memory. Java was designed with security in mind. The idea was that, no matter what you do, Java will never bring down your machine or open security holes (well, that was the idea). Security holes have been found and fixed. Unlike C++ code, (almost) all Java programs benefit from all the security fixes. Each hole plugged is plugged for all Java applications. In other languages, not so much. That's great. But Java never really made it to the desktop. When you run it as web service or web server, you have tools to install and configure Java. On the desktop, not so much. Memory can be a security problem: When an application allocates so much memory, that it makes the whole machine crawl. The JRE doesn't allow an app to allocate memory at will. Instead, it puts an upper limit to the amount of memory which the app can use. With Java 7, the default was 64MB. With Java 8, it's 1/4th of memory or 1GB, whichever is smaller. So if you have 2GB of RAM, Java will allocate at most ~600MB (512MB = 1/4th of RAM plus control structures, runtime, and some other stuff). How do you know whether memory is a problem? Check whether the application uses a lot of CPU. As memory gets tighter, Java will try to free unused memory. That process, called garbage collection, has gotten better over the years but when Java runs out of memory, more and more time is spent collecting garbage. So the usual pattern is: Program stops growing (memory size) and CPU usage goes up or spikes every now and then (app seems to "hang"). Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
that is some very useful information by you Mr.Aaron Digulla on how to optimize the java vm and i would suggest that the thread owner attempt to analyze the windows version launch script to see if there any special parameters are passed to launch the java runtime i personally had a very bad experience with the java gui performance (specially apps written in javafx) but i knew i had crap hardware (an intel celeron processor with some built in gpu chipset) so i bought a used nvidia gpu to test with and the problem was solved and the app worked very well,, the open source nvidia driver works very good also but you might get some weird glitches like wrong orientation of some app interfaces so i would suggest that you try to change your hardware specially the gpu also try to install the proprietary driver -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (11)
-
Aaron Digulla
-
Anton Aylward
-
Carlos E. R.
-
ellanios82
-
George from the tribe
-
Glenn Holmer
-
Istvan Gabor
-
Per Jessen
-
Roger Oberholtzer
-
Sven Semmler
-
TechnoTux