пятница, 10 августа 2012 г.

Lotus Notes/Domino -- продукт и инструмент. Выпуск: 576

Служба рассылок MailList.ru компании АГАВА
Архив рассылки Lotus Notes/Domino. От пользователя до админа Не показываются картинки?

Lotus Notes/Domino -- продукт и инструмент. Выпуск: 576

2012-08-10

Содержание:

CodeStore. Коды Примеры Шаблоны (2)

Extreme Stress Testing a Domino Server | Blog
Quick Domino Tip: Dual-Purpose Agents | Blog

Интенет эфир о Lotus Notes. Блоги и форумы (13)

Надежный документооборот с обновленным Антивирусом Касперского 8.0 для Lotus ...
lotus notes android android-app-sonys.ru/2835article.htm
Трухина Марина Егоровна
lotus notes traveler android скачать androids-apps-sony.ru/23249-kategori...
PST NSF инструмент преобразования может конвертировать несколько PST и защищенных
JavaScriptでXPagesのロジ ... を例にLotus Notes/Dominoのデー ... を実装。Javaクラスの呼び出しも ow.ly/1lSFJT
Выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент. Выпуск: 568" от 06 ...
aggent_ru @nnikiforov в серьезной корпоративной среде использовали lotus domino.
Я думал что самый уродливый интерфейс у программы Lotus Notes, однако жизнь вносит
Работы всякие нужны, работы всякие важны!
Марусич Василий Арсениевич
Обнаружил в окне About для клиента IBM Lotus Notes упоминание о Linux Torvalds, как
lotus notes traveler android скачать android-app-samsung.ru/story-36880.ht...

Закладки о Lotus Notes (25)

Notes/Domino 6 and 7 Forum : Date\All (Threaded)
Home - IBM Lotus and WebSphere Portal Business Solutions Catalog
Troubleshooting agents in Notes/Domino 5 and 6
7 Things IT Managers Should Know About Lotus Notes - CIO.com - Business Technology Leadership
Lotus Domino Designer wiki
Notes/Domino 8 Forum - Date (threaded)
developerWorks Lotus : Lotus Notes and Domino 8 technical content
IBM Lotus Domino and Notes Information Center
IBM Redbooks | Building C omposite Applications
Tips\LotusScript
Mail Merge Mass Mailings in IBM Lotus Notes Domino with Zephyr | dominoGuru.com
HOWTO: Install & setup Lotus Notes for Linux - Ubuntu Forums
HOWTO: Install & setup Lotus Notes for Linux - Ubuntu Forums
IBM Lotus Notes Hints, Tips, and Tricks - This blog helps users learn how to Lotus Notes. Whether you are a brand new to the product, or have been using Notes for a decade, I think you'll find the information presented here useful.
ow.ly
zite.to
Lotus Notes | Archiving FAQ
Lotus Notes and Domino wiki: Lotus Notes Traveler: Lotus Notes Traveler 8.5.3.3
bit.ly
alanghamilton.com
alanghamilton.com
alanghamilton.com
alanghamilton.com
zite.to
wp.me
Спонсоры рассылки:
Поиск по сайтам о Lotus Notes/Domino
Полнотекстовый поиск по тематическим сайтам о Lotus Notes
Хостинг на Lotus Domino















Блиц опрос
Компания ПУЛ - разработка приложений на Lotus Notes/Domino

CodeStore. Коды Примеры Шаблоны

1. Extreme Stress Testing a Domino Server | Blog

Earlier this year I talked about OutOfMemory Java Exceptions I was experiencing. Now I find myself back in the position of writing Java Agents that could potentially leak memory and I'm still really non-the-wiser as to whether I'm clearing up after myself properly in my code.

The code I've written generates PDFs and both emails them and attaches to document. There are OutputStream, InputStreams, ByteArrays, Streams, MimeEntities not to mention all the Domino objects being used.

I've done my best to close, flush and recycle everything. But I'm still paranoid. I don't want to be responsible for killing no server.

Stressing Out

So, I've been stress testing the server. Big time. To do this I added a Page in the database and threw together the tool you see below, which lets me tell it which URL to stress test and when I press " Go" it makes a request for that URL once every second until I tell it to stop.

image

The output you see in the textarea is the JSON I got the Agent to return. The Agent does it's usual business of creating the PDF and storing in a document. It then returns some information about the JVM's memory usage. To do this the Agent ends with this code:

out.println("Content-Type: text/plain");  out.println("");  out.println("{\"memory\":"+      "{\"total\":"+Long.toString(Runtime.getRuntime().totalMemory())+      ",\"free\":"+Long.toString(Runtime.getRuntime().freeMemory())+"}}");  

I then left the Ajax code running and calling the code once a second. Overnight!

By the morning it had made 45,000 calls. Total Memory had fallen from 30.8MB to 18.4MB.

The "free" memory had fallen from a range of between 19mb to 400kb to a range of between 4.5mb to 500kb!!

I then left it running overnight again the next night (with no server respite or restarts). The next day the total memory had risen back to 25MB! Odd, huh?

So, although it looks like the total amount of memory available to the JVM fell overnight the first night, the server managed to regain some of it the next night.

The server is a fairly low-spec VM with 1GB of RAM running on Windows 2003.

server

I've been keeping an eye on the amount of memory the nhttp process is using up and it seems fairly consistent and not about to pop.

Heading For a Fall

Is what I'm seeing typical and expected? Or does the gradual fall in total amount of memory the JVM has mean that, at some point, it's going to break?

Anybody interested in this "tool". I'm not sure whether to make it more configurable and add charts etc. There are lots of powerful web server stress testing software out there, but they're all overkill for what I wanted.

Click here to post a response

2. Quick Domino Tip: Dual-Purpose Agents | Blog

When developing I always try to use as few design elements as possible. It's a thing of mine, although surely not uncommon?

Last week I needed to do some server-side validation. First I wanted to validate in "real time" using Ajax to give the user feedback as they filled out the form and then, second, I wanted to validate again when the form was submitted (you should always validate on save).

I did something I'd never done before and which saved adding two new elements to do the same job; I used an Agent that works out whether it's being called directly via a URL call or whether it's being ran as part of the form's WQS event.

Here's How

It works in Java or LotusScript, but here's the concept as seen in Java:

import  java.io.PrintWriter;  import lotus.domino.*;    public class JavaAgent extends AgentBase {        public void NotesMain() {            try {              Session session = getSession();              AgentContext agentContext = session.getAgentContext();              Document docContext = agentContext.getDocumentContext();              PrintWriter out = getAgentOutput();                //Run code common to both agent calls here.                             if (docContext.getItemValueString("Query_String").toLowerCase().indexOf("openagent")==0){                  //Run code specific to Ajax calls (and return some JSON)                  out.println("content-type: text/plain");                  out.println("{\"valid\":true}");              } else {                   //Run code only needed for WQS                  docContext.replaceItemValue("Valid", "1");              }              } catch(Exception e) {              e.printStackTrace();          }      }  }  

As you can see it works out if it's an Ajax call or not based on the Query String. Yes, even agents ran directly via the URL have a document context!

As it's a WQS agent it needs to be set to run on no documents and from the agent list. You can have your Ajax call the agent directly using the bracketed notation like this:

http://www.codestore.net/user.nsf/(ValidateCellNumber)?OpenAgent

You can also run the same agent in the Form's WQS:

image

One less Agent to maintain!

At some point I'll include this trick in a working Cell Phone Validator demo I plan on building in to Dext.

Gotcha

It's not perfect, as it relies on the agent being called with it's full formal URL of ?OpenAgent and not just a simple ?Open. But hey, that's a trade-off I'm willing to make.

Click here to post a response

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Lotus Sandbox archived

The Lotus Sandbox was closed to all new submissions in 2007. Downloads of previous submissions were still available as an archived resource following that closure, but effective September 2010, downloads from the Lotus Sandbox are no longer available.

If you need to contact us regarding the removal of the Lotus Sandbox, please use our feedback form.

Resources for samples and templates

If you are looking for samples and templates for use with Lotus products, please use these resources:

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

Интенет эфир о Lotus Notes. Блоги и форумы

1. Надежный документооборот с обновленным Антивирусом Касперского 8.0 для Lotus ...

Лаборатория Касперского» сообщает о выпуске обновленного Антивируса Касперского 8.0 для Lotus Domino – корпоративного решения, предназначенного для пользователей платформы для совместной работы IBM Lotus Domino.

2. lotus notes android android-app-sonys.ru/2835article.htm

lotus notes android android-app-sonys.ru/2835article.htm

3. Трухина Марина Егоровна

IBM Lotus Notes

4. lotus notes traveler android скачать androids-apps-sony.ru/23249-kategori...

lotus notes traveler android скачать androids-apps-sony.ru/23249-kategori...

5. PST NSF инструмент преобразования может конвертировать несколько PST и защищенных

PST NSF инструмент преобразования может конвертировать несколько PST и защищенных паролем файлов PST.Пароль должен быть известен заранее, чтобы быть преобразованы эффективно.Инструмент преобразует бирже почтовых ящиков и профилей пользователей в среде Lotus Notes.

6. JavaScriptでXPagesのロジ ... を例にLotus Notes/Dominoのデー ... を実装。Javaクラスの呼び出しも ow.ly/1lSFJT

サーバサイドJavaScriptでXPagesのロジック実装 -  ショッピングカートアプリを例にLotus Notes/Dominoのデータ処理やイベント処理を実装。Javaクラスの呼び出しも ow.ly/1lSFJT

7. Выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент. Выпуск: 568" от 06 ...

Вышел новый выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент.

8. aggent_ru @nnikiforov в серьезной корпоративной среде использовали lotus domino.

aggent_ru @nnikiforov в серьезной корпоративной среде использовали lotus domino. Теперь, надеюсь иные решения. Аутлук это наследие прошлого

9. Я думал что самый уродливый интерфейс у программы Lotus Notes, однако жизнь вносит

Я думал что самый уродливый интерфейс у программы Lotus Notes, однако жизнь вносит свои коррективы.

10. Работы всякие нужны, работы всякие важны!

Надо срочно переучиться на разработчика PHP (PHP developer) или на программиста Lotus Notes, а можно еще стать программистом c++ (c++ developer), неплохо было бы быть и администратором системы галактика, у Java программиста также отличная запрлата...

11. Марусич Василий Арсениевич

IBM Lotus Notes

12. Обнаружил в окне About для клиента IBM Lotus Notes упоминание о Linux Torvalds, как

Обнаружил в окне About для клиента IBM Lotus Notes упоминание о Linux Torvalds, как владельца торговой марки Linux… juick.com/2008765

13. lotus notes traveler android скачать android-app-samsung.ru/story-36880.ht...

lotus notes traveler android скачать android-app-samsung.ru/story-36880.ht...
Блиц-опрос

Источники знаний. Сайты с книгами


"Красные книги" IBM

Книги компании IBM по специализированным тематикам о Lotus Software. Основной язык - английский форматы pdf и html

Книги компании "Интертраст"

Для администраторов разработчиков и пользователей. Настройка и администрирование, разработка и программирование, пользование системой Lotus Note s
Документация. YellowBook
Оригинальная документация по продуктам Lotus Software. Язык англыйский. Форматы pdf html nsf
IBM Пресс
Книги от компании IBM. Книги и брошуры на заказ и на бесплатную скачку в формате pdf
КУДИЦ-ПРЕСС
Просмотр и заказ книг. Некоторые книги возможно скачать в формате pdf для свободно чтения и просмотра.
Книги о Lotus Notes в Интернете
Ссылки на книги и методички находящиеся в свободном пользовании. Ветки форумов обсуждения книг и материалов. Поисковый сервер по хелпам Lotus Notes книги от Google для свободного просмотра

В избранное о Lotus Notes/Domino В подготовке выпуска использовались материалы и знания
По вопросам спонсорства, публикации материалов, участия обращайтесь к ведущему рассылку LotusDomiNotes


Архив рассылки | RSS версия | Настройки | Отписаться: На сайте / По почте

Комментариев нет:

Отправить комментарий